@@ -18,27 +18,44 @@ jobs:
1818 - name : checkout code
1919 uses : actions/checkout@v4
2020 - name : Set up QEMU
21- uses : docker/setup-qemu-action@v1
21+ uses : docker/setup-qemu-action@v3
2222 - name : Set up Docker Buildx
2323 id : buildx
24- uses : docker/setup-buildx-action@v1
24+ uses : docker/setup-buildx-action@v3
2525 with :
2626 install : true
2727 - name : Builder instance name
2828 run : echo ${{ steps.buildx.outputs.name }}
2929 - name : Available platforms
3030 run : echo ${{ steps.buildx.outputs.platforms }}
31- - name : login to docker hub
32- run : echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
33- - name : tag and push devel image
34- run : |
35- docker build --push \
36- --tag dmstraub/gramps-webapi:latest-devel \
37- --platform linux/amd64,linux/arm/v7,linux/arm64 .
38- - name : tag and push release image
31+ - name : Log in to Docker Hub
32+ uses : docker/login-action@v3
33+ with :
34+ username : ${{ secrets.DOCKER_USERNAME }}
35+ password : ${{ secrets.DOCKER_PASSWORD }}
36+ - name : Build and push devel image
37+ uses : docker/build-push-action@v6
38+ with :
39+ push : true
40+ tags : |
41+ dmstraub/gramps-webapi:latest-devel
42+ platforms : linux/amd64,linux/arm64,linux/arm/v7
43+ cache-from : type=gha
44+ cache-to : type=gha,mode=max
45+ provenance : false
46+ progress : plain
47+
48+ - name : Build and push release image
3949 if : github.event_name == 'release'
40- run : |
41- docker build --push \
42- --tag dmstraub/gramps-webapi:${{ github.event.release.tag_name }} \
43- --tag dmstraub/gramps-webapi:latest \
44- --platform linux/amd64,linux/arm/v7,linux/arm64 .
50+ uses : docker/build-push-action@v5
51+ with :
52+ push : true
53+ tags : |
54+ dmstraub/gramps-webapi:${{ github.event.release.tag_name }}
55+ dmstraub/gramps-webapi:latest
56+ platforms : linux/amd64,linux/arm64,linux/arm/v7
57+ cache-from : type=gha
58+ cache-to : type=gha,mode=max
59+ provenance : false
60+ progress : plain
61+ V
0 commit comments