Skip to content

Commit

Permalink
feat: update django-cd.yml to support multi-arch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Jan 2, 2025
1 parent ae92f37 commit 4a5212c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/django-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
- name: Build and Push Docker Image
run: |
docker buildx create --use
docker buildx build --platform linux/amd64 . \
--output type=docker \
--tag ghcr.io/anitrend/anitrend:${{ steps.set-tag.outputs.tag }} \
docker buildx build \
--platform linux/amd64,linux/arm64 \
--cache-from type=registry,ref=ghcr.io/anitrend/anitrend:cache,mode=max \
--cache-to type=registry,ref=ghcr.io/anitrend/anitrend:cache
docker push ghcr.io/anitrend/anitrend:${{ steps.set-tag.outputs.tag }}
--cache-to type=registry,ref=ghcr.io/anitrend/anitrend:cache \
--tag ghcr.io/anitrend/anitrend:${{ steps.set-tag.outputs.tag }} \
--push .
working-directory: .

0 comments on commit 4a5212c

Please sign in to comment.