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 f5071f4 commit 5a727d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,30 @@ on:
- "main"
paths:
- api/Dockerfile
- web/Dockerfile

concurrency:
group: docker-build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-api-docker:
build-docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/amd64
service_name: "build-api-amd64"
service_name: "api-amd64"
context: "api"
- platform: linux/arm64
service_name: "build-api-arm64"
service_name: "api-arm64"
context: "api"
- platform: linux/amd64
service_name: "web-amd64"
context: "web"
- platform: linux/arm64
service_name: "web-arm64"
context: "web"
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
1 change: 0 additions & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ RUN yarn global add pm2 \
&& chown -R 1001:0 /.pm2 /app/web \
&& chmod -R g=u /.pm2 /app/web


ARG COMMIT_SHA
ENV COMMIT_SHA=${COMMIT_SHA}

Expand Down

0 comments on commit 5a727d8

Please sign in to comment.