@@ -16,40 +16,27 @@ jobs:
1616 runs-on : ubuntu-latest
1717 environment : ' prod'
1818 steps :
19- - name : Free Disk Space
20- run : |
21- sudo rm -rf /opt/hostedtoolcache
22-
2319 - name : Checkout repository
2420 uses : actions/checkout@v4
2521
26- - name : Set up Docker Buildx
27- uses : docker/setup-buildx-action@v3
28-
2922 - name : Login to Docker Hub
3023 uses : docker/login-action@v3
3124 with :
3225 username : ${{ secrets.DOCKERHUB_USERNAME }}
3326 password : ${{ secrets.DOCKERHUB_TOKEN }}
3427
35- - name : Extract metadata for Docker
36- id : meta
37- uses : docker/metadata-action@v5
38- with :
39- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40- tags : |
41- type=semver,pattern={{version}}
42- type=semver,pattern={{major}}.{{minor}}
43- type=ref,event=branch
44- type=sha
28+ - name : Set up QEMU
29+ uses : docker/setup-qemu-action@v3
30+ -
31+ name : Set up Docker Buildx
32+ uses : docker/setup-buildx-action@v3
33+
4534
46- - name : Build and Push Docker Image
47- uses : docker/build-push-action@v5
35+ - name : Build and push
36+ uses : docker/build-push-action@v6
4837 with :
49- context : .
50- file : docker/Dockerfile
51- push : true
52- tags : ${{ steps.meta.outputs.tags }}
53- labels : ${{ steps.meta.outputs.labels }}
54- cache-from : type=gha
55- cache-to : type=gha,mode=max
38+ file : docker/Dockerfile
39+ platforms : linux/amd64
40+ push : true
41+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
42+
0 commit comments