File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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()
You can’t perform that action at this time.
0 commit comments