@@ -4,7 +4,6 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87permissions :
98 contents : read
109
@@ -31,19 +30,19 @@ jobs:
3130 steps :
3231 -
3332 name : Checkout
34- uses : actions/checkout@v6
33+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3534 -
3635 name : Validate matrix
3736 id : validate
38- uses : docker/bake-action/subaction/matrix@v6
37+ uses : docker/bake-action/subaction/matrix@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
3938 with :
4039 target : validate
4140 env :
4241 GOLANGCI_LINT_MULTIPLATFORM : 1
4342 -
4443 name : Artifact matrix
4544 id : artifact
46- uses : docker/bake-action/subaction/matrix@v6
45+ uses : docker/bake-action/subaction/matrix@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
4746 with :
4847 target : artifact-all
4948 fields : platforms
@@ -59,13 +58,13 @@ jobs:
5958 steps :
6059 -
6160 name : Checkout
62- uses : actions/checkout@v6
61+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6362 -
6463 name : Set up Docker Buildx
65- uses : docker/setup-buildx-action@v3
64+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
6665 -
6766 name : Validate
68- uses : docker/bake-action@v6
67+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
6968 with :
7069 source : .
7170 targets : ${{ matrix.target }}
@@ -87,18 +86,18 @@ jobs:
8786 echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
8887 -
8988 name : Checkout
90- uses : actions/checkout@v6
89+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9190 with :
9291 fetch-depth : 0
9392 -
9493 name : Set up QEMU
95- uses : docker/setup-qemu-action@v4
94+ uses : docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
9695 -
9796 name : Set up Docker Buildx
98- uses : docker/setup-buildx-action@v3
97+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
9998 -
10099 name : Build
101- uses : docker/bake-action@v6
100+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
102101 with :
103102 source : .
104103 targets : artifact
@@ -122,7 +121,7 @@ jobs:
122121 tree -nh ${{ env.DESTDIR }}
123122 -
124123 name : Upload artifact
125- uses : actions/upload-artifact@v6
124+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
126125 with :
127126 name : swarm-cronjob-${{ env.PLATFORM_PAIR }}
128127 path : ${{ env.DESTDIR }}
@@ -138,27 +137,27 @@ jobs:
138137 steps :
139138 -
140139 name : Checkout
141- uses : actions/checkout@v6
140+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
142141 -
143142 name : Download artifacts
144- uses : actions/download-artifact@v7
143+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
145144 with :
146145 path : ${{ env.DESTDIR }}
147146 pattern : swarm-cronjob-*
148147 merge-multiple : true
149148 -
150149 name : Set up Docker Buildx
151- uses : docker/setup-buildx-action@v3
150+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
152151 -
153152 name : Build
154- uses : docker/bake-action@v6
153+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
155154 with :
156155 source : .
157156 targets : release
158157 provenance : false
159158 -
160159 name : GitHub Release
161- uses : softprops/action-gh-release@v2
160+ uses : softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
162161 if : startsWith(github.ref, 'refs/tags/')
163162 with :
164163 draft : true
@@ -179,13 +178,13 @@ jobs:
179178 steps :
180179 -
181180 name : Checkout
182- uses : actions/checkout@v6
181+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
183182 with :
184183 fetch-depth : 0
185184 -
186185 name : Docker meta
187186 id : meta
188- uses : docker/metadata-action@v5
187+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
189188 with :
190189 images : |
191190 ${{ env.DOCKERHUB_SLUG }}
@@ -202,28 +201,28 @@ jobs:
202201 org.opencontainers.image.vendor=CrazyMax
203202 -
204203 name : Set up QEMU
205- uses : docker/setup-qemu-action@v4
204+ uses : docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
206205 -
207206 name : Set up Docker Buildx
208- uses : docker/setup-buildx-action@v3
207+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
209208 -
210209 name : Login to DockerHub
211210 if : github.event_name != 'pull_request'
212- uses : docker/login-action@v4
211+ uses : docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
213212 with :
214213 username : ${{ secrets.DOCKER_USERNAME }}
215214 password : ${{ secrets.DOCKER_PASSWORD }}
216215 -
217216 name : Login to GHCR
218217 if : github.event_name != 'pull_request'
219- uses : docker/login-action@v4
218+ uses : docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
220219 with :
221220 registry : ghcr.io
222221 username : ${{ github.repository_owner }}
223222 password : ${{ secrets.GITHUB_TOKEN }}
224223 -
225224 name : Build
226- uses : docker/bake-action@v6
225+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
227226 with :
228227 source : .
229228 files : |
0 commit comments