File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 25
25
username : ${{ secrets.DOCKERHUB_USERNAME }}
26
26
password : ${{ secrets.DOCKERHUB_TOKEN }}
27
27
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
30
30
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 .
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ version: "3.8"
2
2
services :
3
3
ktu-bot :
4
4
image : devadathanmb/ktu-bot:latest # Pull the latest image from Docker Hub
5
+ platform : linux/arm64
5
6
restart : always
6
7
depends_on :
7
8
redis-queue-db :
You can’t perform that action at this time.
0 commit comments