Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Nov 15, 2024
1 parent ce6fc8b commit a8d2aa3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build API dockerfile
name: Build API docker image

on:
pull_request:
Expand All @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-api-docker:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -21,6 +21,10 @@ jobs:
image_name_env: "DIFY_API_IMAGE_NAME"
context: "api"
platform: linux/amd64
- service_name: "build-api-arm64"
image_name_env: "DIFY_API_IMAGE_NAME"
context: "api"
platform: linux/arm64
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -44,5 +48,4 @@ jobs:
build-args: COMMIT_SHA=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env[matrix.image_name_env] }},push-by-digest=true,name-canonical=true,push=false
# cache-from: type=gha,scope=${{ matrix.service_name }}
# cache-to: type=gha,mode=max,scope=${{ matrix.service_name }}
cache-from: type=gha,scope=${{ matrix.service_name }}

0 comments on commit a8d2aa3

Please sign in to comment.