Skip to content

Commit 809159d

Browse files
committed
fix: Fix workflow
1 parent ddefe11 commit 809159d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-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 .

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: "3.8"
22
services:
33
ktu-bot:
44
image: devadathanmb/ktu-bot:latest # Pull the latest image from Docker Hub
5+
platform: linux/arm64
56
restart: always
67
depends_on:
78
redis-queue-db:

0 commit comments

Comments
 (0)