Skip to content

Commit

Permalink
Support build for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 authored Aug 30, 2024
1 parent 423d371 commit 29f06bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -30,7 +30,7 @@ jobs:
- name: Build Docker Image
run: |
cd $BUILD_DIR
docker build . -t ghcr.io/$OWNER_LC/$IMAGE_NAME -t ghcr.io/$OWNER_LC/$IMAGE_NAME:$VERSION -t ${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME -t ${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME:$VERSION
docker build . --platform linux/amd64,linux/arm64 -t ghcr.io/$OWNER_LC/$IMAGE_NAME -t ghcr.io/$OWNER_LC/$IMAGE_NAME:$VERSION -t ${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME -t ${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME:$VERSION
- name: Push the Docker image to ghcr.io
run: |
Expand Down

0 comments on commit 29f06bd

Please sign in to comment.