Skip to content

Commit

Permalink
fix: Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Jan 3, 2025
1 parent ddefe11 commit 7b36cb2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Step 4: Build the Docker image for multiple platforms (amd64 and arm64)
- name: Build Docker image for amd64 and arm64
# Step 4: Build Docker image for arm64 only
- name: Build Docker image for arm64
run: |
docker buildx build --platform linux/amd64,linux/arm64 -t devadathanmb/ktu-bot:latest --push .
# Ensure the builder supports multi-architecture
docker buildx create --use
# Build and push image only for arm64
docker buildx build --platform linux/arm64 -t devadathanmb/ktu-bot:latest --push .

0 comments on commit 7b36cb2

Please sign in to comment.