Skip to content

Commit e0a4e03

Browse files
authored
Use latest docker-publish
1 parent c29df63 commit e0a4e03

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Docker
77

88
on:
99
schedule:
10-
- cron: '36 20 * * *'
10+
- cron: '15 18 1 * *'
1111
push:
1212
branches: [ "main" ]
1313
# Publish semver tags as releases.
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
# Install the cosign tool except on PR
4141
# https://github.com/sigstore/cosign-installer
@@ -45,15 +45,17 @@ jobs:
4545
with:
4646
cosign-release: 'v2.1.1'
4747

48-
# Workaround: https://github.com/docker/build-push-action/issues/461
49-
- name: Setup Docker buildx
50-
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
48+
# Set up BuildKit Docker container builder to be able to build
49+
# multi-platform images and export cache
50+
# https://github.com/docker/setup-buildx-action
51+
- name: Set up Docker Buildx
52+
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
5153

5254
# Login against a Docker registry except on PR
5355
# https://github.com/docker/login-action
5456
- name: Log into registry ${{ env.REGISTRY }}
5557
if: github.event_name != 'pull_request'
56-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
58+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
5759
with:
5860
registry: ${{ env.REGISTRY }}
5961
username: ${{ github.actor }}
@@ -63,15 +65,15 @@ jobs:
6365
# https://github.com/docker/metadata-action
6466
- name: Extract Docker metadata
6567
id: meta
66-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
68+
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
6769
with:
6870
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6971

7072
# Build and push Docker image with Buildx (don't push on PR)
7173
# https://github.com/docker/build-push-action
7274
- name: Build and push Docker image
7375
id: build-and-push
74-
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
76+
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
7577
with:
7678
context: .
7779
push: ${{ github.event_name != 'pull_request' }}
@@ -80,7 +82,6 @@ jobs:
8082
cache-from: type=gha
8183
cache-to: type=gha,mode=max
8284

83-
8485
# Sign the resulting Docker image digest except on PRs.
8586
# This will only write to the public Rekor transparency log when the Docker
8687
# repository is public to avoid leaking data. If you would like to publish

0 commit comments

Comments
 (0)