@@ -7,7 +7,7 @@ name: Docker
7
7
8
8
on :
9
9
schedule :
10
- - cron : ' 36 20 * * *'
10
+ - cron : ' 15 18 1 * *'
11
11
push :
12
12
branches : [ "main" ]
13
13
# Publish semver tags as releases.
35
35
36
36
steps :
37
37
- name : Checkout repository
38
- uses : actions/checkout@v3
38
+ uses : actions/checkout@v4
39
39
40
40
# Install the cosign tool except on PR
41
41
# https://github.com/sigstore/cosign-installer
@@ -45,15 +45,17 @@ jobs:
45
45
with :
46
46
cosign-release : ' v2.1.1'
47
47
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
51
53
52
54
# Login against a Docker registry except on PR
53
55
# https://github.com/docker/login-action
54
56
- name : Log into registry ${{ env.REGISTRY }}
55
57
if : github.event_name != 'pull_request'
56
- uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
58
+ uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
57
59
with :
58
60
registry : ${{ env.REGISTRY }}
59
61
username : ${{ github.actor }}
@@ -63,15 +65,15 @@ jobs:
63
65
# https://github.com/docker/metadata-action
64
66
- name : Extract Docker metadata
65
67
id : meta
66
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
68
+ uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
67
69
with :
68
70
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
69
71
70
72
# Build and push Docker image with Buildx (don't push on PR)
71
73
# https://github.com/docker/build-push-action
72
74
- name : Build and push Docker image
73
75
id : build-and-push
74
- uses : docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
76
+ uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
75
77
with :
76
78
context : .
77
79
push : ${{ github.event_name != 'pull_request' }}
80
82
cache-from : type=gha
81
83
cache-to : type=gha,mode=max
82
84
83
-
84
85
# Sign the resulting Docker image digest except on PRs.
85
86
# This will only write to the public Rekor transparency log when the Docker
86
87
# repository is public to avoid leaking data. If you would like to publish
0 commit comments