@@ -7,22 +7,21 @@ name: Docker
77
88on :
99 schedule :
10- - cron : ' 39 11 * * *'
10+ - cron : " 39 11 * * *"
1111 push :
12- branches : [ "main"]
12+ branches : [ "main" ]
1313 # Publish semver tags as releases.
14- tags : [ ' v*.*.*' ]
14+ tags : [ " v*.*.*" ]
1515 pull_request :
1616 branches : [ "main" ]
1717 workflow_dispatch :
18-
18+
1919env :
2020 # Use docker.io for Docker Hub if empty
2121 REGISTRY : ghcr.io
2222 # github.repository as <account>/<repo>
2323 IMAGE_NAME : ${{ github.repository }}
2424
25-
2625jobs :
2726 build :
2827
@@ -39,23 +38,23 @@ jobs:
3938 uses : actions/checkout@v6
4039 with :
4140 fetch-depth : 0
42- fetch-tags : ' true'
41+ fetch-tags : " true"
4342 persist-credentials : false
4443 - name : Install cosign
4544 if : github.event_name != 'pull_request'
46- uses : sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
45+ uses : sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
4746
4847 # Set up BuildKit Docker container builder to be able to build
4948 # multi-platform images and export cache
5049 # https://github.com/docker/setup-buildx-action
5150 - name : Set up Docker Buildx
52- uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12 .0
51+ uses : docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0 .0
5352
5453 # Login against a Docker registry except on PR
5554 # https://github.com/docker/login-action
5655 - name : Log into registry ${{ env.REGISTRY }}
5756 if : github.event_name != 'pull_request'
58- uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6 .0
57+ uses : docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1 .0
5958 with :
6059 registry : ${{ env.REGISTRY }}
6160 username : ${{ github.actor }}
@@ -65,15 +64,15 @@ jobs:
6564 # https://github.com/docker/metadata-action
6665 - name : Extract Docker metadata
6766 id : meta
68- uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10 .0
67+ uses : docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0 .0
6968 with :
7069 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7170
7271 # Build and push Docker image with Buildx (don't push on PR)
7372 # https://github.com/docker/build-push-action
7473 - name : Build and push Docker image
7574 id : build-and-push
76- uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18 .0
75+ uses : docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1 .0
7776 with :
7877 context : .
7978 push : ${{ github.event_name != 'pull_request' }}
0 commit comments