Skip to content

build: support Poetry for depencencies tool in api's Dockerfile #36

build: support Poetry for depencencies tool in api's Dockerfile

build: support Poetry for depencencies tool in api's Dockerfile #36

Workflow file for this run

name: API Docker
on:
pull_request:
branches:
- main
paths:
- api/*Dockerfile
- docker/**
push:
branches:
- "main"
- "deploy/dev"
concurrency:
group: api-docker-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
jobs:
api-docker:
runs-on: ubuntu-latest
strategy:
matrix:
platforms:
- linux/amd64
- linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./api
file: ./api/poetry.Dockerfile
platforms: ${{ matrix.platforms }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: langgenius/dify-api:poetry-${{ github.head_ref }}