Skip to content

Commit 7b36cb2

Browse files
committed
fix: Fix workflow
1 parent ddefe11 commit 7b36cb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-and-push.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
username: ${{ secrets.DOCKERHUB_USERNAME }}
2626
password: ${{ secrets.DOCKERHUB_TOKEN }}
2727

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

0 commit comments

Comments
 (0)