Skip to content

Commit 6efb751

Browse files
committed
removed multi-architecture build support and added GitHub Actions cache for faster builds
1 parent 8e38909 commit 6efb751

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ jobs:
5353
echo "Waiting a bit for redis..."
5454
sleep 5
5555
56-
- name: Set up QEMU for multi-arch builds
57-
uses: docker/setup-qemu-action@v3
58-
5956
- name: Build Docker image (no push)
6057
uses: docker/build-push-action@v5
6158
with:
@@ -65,6 +62,8 @@ jobs:
6562
load: true
6663
platforms: linux/amd64
6764
tags: chauhansomay/nodejs-api:ci-${{ github.sha }}
65+
cache-from: type=gha
66+
cache-to: type=gha,mode=max
6867

6968
- name: Run API container for smoke test
7069
run: |
@@ -125,14 +124,15 @@ jobs:
125124
echo "Smoke test passed ✅"
126125
docker stop nodejs-api-test
127126
128-
- name: Build and push multi-arch image to Docker Hub
127+
- name: Push image to Docker Hub
129128
uses: docker/build-push-action@v5
130129
with:
131130
context: .
132131
file: ./Dockerfile
133132
push: true
134-
platforms: linux/amd64,linux/arm64
133+
platforms: linux/amd64
135134
tags: chauhansomay/nodejs-api:latest
135+
cache-from: type=gha
136136

137137
- name: Docker compose down
138138
if: always()

0 commit comments

Comments
 (0)