@@ -24,35 +24,37 @@ jobs:
2424 echo "RELEASE_DATE=$(date -u '+%Y-%m-%dT%H:%M:%S%z')" >> ${GITHUB_ENV}
2525
2626 - name : Checkout code
27- uses : actions/checkout@v4
27+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
28+ with :
29+ token : ${{ secrets.GITHUB_TOKEN }}
2830
2931 # https://github.com/docker/setup-qemu-action
3032 - name : Set up QEMU
31- uses : docker/setup-qemu-action@v3
33+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
3234
3335 # https://github.com/docker/setup-buildx-action
3436 - name : Set up Docker Buildx
35- uses : docker/setup-buildx-action@v3
37+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
3638
3739 # https://github.com/docker/login-action
3840 - name : Login to GHCR
3941 if : github.event_name != 'pull_request'
40- uses : docker/login-action@v3
42+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
4143 with :
4244 registry : ghcr.io
4345 username : ${{ github.repository_owner }}
4446 password : ${{ secrets.GITHUB_TOKEN }}
4547 - name : Login to Docker Hub
4648 if : github.event_name != 'pull_request'
47- uses : docker/login-action@v3
49+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
4850 with :
4951 username : ${{ secrets.DOCKERHUB_USERNAME }}
5052 password : ${{ secrets.DOCKERHUB_TOKEN }}
5153
5254 # https://github.com/docker/metadata-action
5355 - name : Set container meta
5456 id : meta
55- uses : docker/metadata-action@v5
57+ uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
5658 with :
5759 images : |
5860 ${{ env.IMAGE_NAME }}
@@ -63,15 +65,19 @@ jobs:
6365 type=semver,pattern={{major}}.{{minor}}
6466 type=semver,pattern={{major}}
6567 type=sha
68+ type=raw,value=latest
6669
6770 # https://github.com/docker/build-push-action
6871 - name : Build and push
6972 id : build
70- uses : docker/build-push-action@v6
73+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
7174 with :
7275 context : .
73- platforms : linux/386, linux/ amd64, linux/arm/v6, linux/arm/v7, linux/ arm64/v8, linux/ppc64le, linux/s390x
76+ platforms : linux/amd64,linux/arm64
7477 build-args : BUILD_DATE=${{ env.RELEASE_DATE }}
7578 push : ${{ github.event_name != 'pull_request' }}
7679 tags : ${{ steps.meta.outputs.tags }}
7780 labels : ${{ steps.meta.outputs.labels }}
81+ cache-from : type=gha
82+ cache-to : type=gha,mode=max
83+ provenance : true
0 commit comments