88concurrency : ${{ github.ref }}
99
1010env :
11- IMAGE_NAME : cloudstruct/cardano-node
11+ DOCKER_IMAGE_NAME : blinklabs/cardano-node
12+ GHCR_IMAGE_NAME : ghcr.io/blinklabs-io/cardano-node
1213
1314jobs :
1415
@@ -19,14 +20,14 @@ jobs:
1920 packages : write
2021 steps :
2122 - uses : actions/checkout@v2
22- - uses : docker/setup-buildx-action@v1
23+ - uses : docker/setup-buildx-action@v2
2324 - name : Login to Docker Hub
24- uses : docker/login-action@v1
25+ uses : docker/login-action@v2
2526 with :
26- username : cloudstruct
27+ username : blinklabs
2728 password : ${{ secrets.DOCKER_PASSWORD }} # uses token
2829 - name : Login to GHCR
29- uses : docker/login-action@v1
30+ uses : docker/login-action@v2
3031 with :
3132 registry : ghcr.io
3233 username : ${{ github.actor }}
@@ -38,11 +39,10 @@ jobs:
3839 restore-keys : |
3940 ${{ runner.os }}-${{ runner.arch }}-buildx-
4041 - id : meta
41- uses : docker/metadata-action@v3
42+ uses : docker/metadata-action@v4
4243 with :
4344 images : |
44- ${{ env.IMAGE_NAME }}
45- ghcr.io/${{ env.IMAGE_NAME }}
45+ ${{ env.GHCR_IMAGE_NAME }}
4646 flavor : |
4747 latest=false
4848 suffix=-amd64
5454 # semver
5555 type=semver,pattern={{version}}
5656 - name : push
57- uses : docker/build-push-action@v2
57+ uses : docker/build-push-action@v3
5858 with :
5959 context : .
6060 push : true
@@ -86,14 +86,14 @@ jobs:
8686 packages : write
8787 steps :
8888 - uses : actions/checkout@v2
89- - uses : docker/setup-buildx-action@v1
89+ - uses : docker/setup-buildx-action@v2
9090 - name : Login to Docker Hub
91- uses : docker/login-action@v1
91+ uses : docker/login-action@v2
9292 with :
93- username : cloudstruct
93+ username : blinklabs
9494 password : ${{ secrets.DOCKER_PASSWORD }} # uses token
9595 - name : Login to GHCR
96- uses : docker/login-action@v1
96+ uses : docker/login-action@v2
9797 with :
9898 registry : ghcr.io
9999 username : ${{ github.actor }}
@@ -105,11 +105,10 @@ jobs:
105105 restore-keys : |
106106 ${{ runner.os }}-${{ runner.arch }}-buildx-
107107 - id : meta
108- uses : docker/metadata-action@v3
108+ uses : docker/metadata-action@v4
109109 with :
110110 images : |
111- ${{ env.IMAGE_NAME }}
112- ghcr.io/${{ env.IMAGE_NAME }}
111+ ${{ env.GHCR_IMAGE_NAME }}
113112 flavor : |
114113 latest=false
115114 suffix=-arm64v8
@@ -121,7 +120,7 @@ jobs:
121120 # semver
122121 type=semver,pattern={{version}}
123122 - name : push
124- uses : docker/build-push-action@v2
123+ uses : docker/build-push-action@v3
125124 with :
126125 context : .
127126 push : true
@@ -154,59 +153,63 @@ jobs:
154153 packages : write
155154 steps :
156155 - uses : actions/checkout@v2
157- - uses : docker/setup-buildx-action@v1
156+ - uses : docker/setup-buildx-action@v2
158157 - name : Login to Docker Hub
159- uses : docker/login-action@v1
158+ uses : docker/login-action@v2
160159 with :
161- username : cloudstruct
160+ username : blinklabs
162161 password : ${{ secrets.DOCKER_PASSWORD }} # uses token
163162 - name : Login to GHCR
164- uses : docker/login-action@v1
163+ uses : docker/login-action@v2
165164 with :
166165 registry : ghcr.io
167166 username : ${{ github.actor }}
168167 password : ${{ secrets.GITHUB_TOKEN }}
169168 - id : meta-dockerhub
170169 name : Metadata - Docker Hub
171- uses : docker/metadata-action@v3
170+ uses : docker/metadata-action@v4
172171 with :
173- images : ${{ env.IMAGE_NAME }}
172+ images : ${{ env.DOCKER_IMAGE_NAME }}
174173 flavor : |
175174 latest=false
176175 tags : |
176+ # Only version, no revision
177+ type=match,pattern=v(.*)-(.*),group=1
177178 # branch
178179 type=ref,event=branch
179180 # semver
180181 type=semver,pattern={{version}}
181182 - id : meta-dockerhub-tag
182183 name : Metadata - Docker Hub (Tags)
183- uses : docker/metadata-action@v3
184+ uses : docker/metadata-action@v4
184185 with :
185186 images : |
186- ${{ env.IMAGE_NAME }}
187+ ${{ env.DOCKER_IMAGE_NAME }}
187188 flavor : |
188189 latest=false
189190 tags : |
190191 # Only version, no revision
191192 type=match,pattern=v(.*)-(.*),group=1
192193 - id : meta-ghcr
193194 name : Metadata - GHCR
194- uses : docker/metadata-action@v3
195+ uses : docker/metadata-action@v4
195196 with :
196- images : ghcr.io/ ${{ env.IMAGE_NAME }}
197+ images : ${{ env.GHCR_IMAGE_NAME }}
197198 flavor : |
198199 latest=false
199200 tags : |
201+ # Only version, no revision
202+ type=match,pattern=v(.*)-(.*),group=1
200203 # branch
201204 type=ref,event=branch
202205 # semver
203206 type=semver,pattern={{version}}
204207 - id : meta-ghcr-tag
205208 name : Metadata - GHCR (Tags)
206- uses : docker/metadata-action@v3
209+ uses : docker/metadata-action@v4
207210 with :
208211 images : |
209- ghcr.io/ ${{ env.IMAGE_NAME }}
212+ ${{ env.GHCR_IMAGE_NAME }}
210213 flavor : |
211214 latest=false
212215 tags : |
@@ -219,10 +222,10 @@ jobs:
219222 run : docker manifest create ${{ steps.meta-ghcr.outputs.tags }} --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
220223 # Optional manifest for latest
221224 - name : manifest-dockerhub-latest
222- run : docker manifest create ${{ env.IMAGE_NAME }}:latest --amend ${{ steps.meta-dockerhub.outputs.tags }}-amd64 --amend ${{ steps.meta-dockerhub.outputs.tags }}-arm64v8
225+ run : docker manifest create ${{ env.DOCKER_IMAGE_NAME }}:latest --amend ${{ steps.meta-dockerhub.outputs.tags }}-amd64 --amend ${{ steps.meta-dockerhub.outputs.tags }}-arm64v8
223226 if : startsWith(github.ref, 'refs/tags/')
224227 - name : manifest-ghcr-latest
225- run : docker manifest create ghcr.io/ ${{ env.IMAGE_NAME }}:latest --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
228+ run : docker manifest create ${{ env.GHCR_IMAGE_NAME }}:latest --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
226229 if : startsWith(github.ref, 'refs/tags/')
227230 # Optional manifest for tag versions (includes revisions)
228231 - name : manifest-dockerhub-tags
@@ -237,10 +240,10 @@ jobs:
237240 - name : push-ghcr
238241 run : docker manifest push ${{ steps.meta-ghcr.outputs.tags }}
239242 - name : push-dockerhub-latest
240- run : docker manifest push ${{ env.IMAGE_NAME }}:latest
243+ run : docker manifest push ${{ env.DOCKER_IMAGE_NAME }}:latest
241244 if : startsWith(github.ref, 'refs/tags/')
242245 - name : push-ghcr-latest
243- run : docker manifest push ghcr.io/ ${{ env.IMAGE_NAME }}:latest
246+ run : docker manifest push ${{ env.GHCR_IMAGE_NAME }}:latest
244247 if : startsWith(github.ref, 'refs/tags/')
245248 - name : push-dockerhub-tags
246249 run : docker manifest push ${{ steps.meta-dockerhub-tag.outputs.tags }}
@@ -252,9 +255,9 @@ jobs:
252255 - name : Docker Hub Description
253256 uses : peter-evans/dockerhub-description@v3
254257 with :
255- username : cloudstruct
258+ username : blinklabs
256259 password : ${{ secrets.DOCKER_PASSWORD }}
257- repository : ${{ env.IMAGE_NAME }}
260+ repository : ${{ env.DOCKER_IMAGE_NAME }}
258261 readme-filepath : ./README.md
259262 short-description : " Cardano Node built from source on Debian"
260263
0 commit comments