Skip to content

Commit 91cbf21

Browse files
committed
fix: Fix workflow
1 parent ddefe11 commit 91cbf21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
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)
28+
# Step 4: Build Docker image for multiple platforms (amd64 and arm64)
2929
- name: Build Docker image for amd64 and arm64
3030
run: |
31+
# Ensure the builder supports multi-architecture
32+
docker buildx create --use
33+
# Build and push image for both amd64 and arm64
3134
docker buildx build --platform linux/amd64,linux/arm64 -t devadathanmb/ktu-bot:latest --push .

0 commit comments

Comments
 (0)