8
8
concurrency : ${{ github.ref }}
9
9
10
10
env :
11
- IMAGE_NAME : cloudstruct/cardano-node
11
+ DOCKER_IMAGE_NAME : blinklabs/cardano-node
12
+ GHCR_IMAGE_NAME : ghcr.io/blinklabs-io/cardano-node
12
13
13
14
jobs :
14
15
@@ -19,14 +20,14 @@ jobs:
19
20
packages : write
20
21
steps :
21
22
- uses : actions/checkout@v2
22
- - uses : docker/setup-buildx-action@v1
23
+ - uses : docker/setup-buildx-action@v2
23
24
- name : Login to Docker Hub
24
- uses : docker/login-action@v1
25
+ uses : docker/login-action@v2
25
26
with :
26
- username : cloudstruct
27
+ username : blinklabs
27
28
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
28
29
- name : Login to GHCR
29
- uses : docker/login-action@v1
30
+ uses : docker/login-action@v2
30
31
with :
31
32
registry : ghcr.io
32
33
username : ${{ github.actor }}
@@ -38,11 +39,10 @@ jobs:
38
39
restore-keys : |
39
40
${{ runner.os }}-${{ runner.arch }}-buildx-
40
41
- id : meta
41
- uses : docker/metadata-action@v3
42
+ uses : docker/metadata-action@v4
42
43
with :
43
44
images : |
44
- ${{ env.IMAGE_NAME }}
45
- ghcr.io/${{ env.IMAGE_NAME }}
45
+ ${{ env.GHCR_IMAGE_NAME }}
46
46
flavor : |
47
47
latest=false
48
48
suffix=-amd64
54
54
# semver
55
55
type=semver,pattern={{version}}
56
56
- name : push
57
- uses : docker/build-push-action@v2
57
+ uses : docker/build-push-action@v3
58
58
with :
59
59
context : .
60
60
push : true
@@ -86,14 +86,14 @@ jobs:
86
86
packages : write
87
87
steps :
88
88
- uses : actions/checkout@v2
89
- - uses : docker/setup-buildx-action@v1
89
+ - uses : docker/setup-buildx-action@v2
90
90
- name : Login to Docker Hub
91
- uses : docker/login-action@v1
91
+ uses : docker/login-action@v2
92
92
with :
93
- username : cloudstruct
93
+ username : blinklabs
94
94
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
95
95
- name : Login to GHCR
96
- uses : docker/login-action@v1
96
+ uses : docker/login-action@v2
97
97
with :
98
98
registry : ghcr.io
99
99
username : ${{ github.actor }}
@@ -105,11 +105,10 @@ jobs:
105
105
restore-keys : |
106
106
${{ runner.os }}-${{ runner.arch }}-buildx-
107
107
- id : meta
108
- uses : docker/metadata-action@v3
108
+ uses : docker/metadata-action@v4
109
109
with :
110
110
images : |
111
- ${{ env.IMAGE_NAME }}
112
- ghcr.io/${{ env.IMAGE_NAME }}
111
+ ${{ env.GHCR_IMAGE_NAME }}
113
112
flavor : |
114
113
latest=false
115
114
suffix=-arm64v8
@@ -121,7 +120,7 @@ jobs:
121
120
# semver
122
121
type=semver,pattern={{version}}
123
122
- name : push
124
- uses : docker/build-push-action@v2
123
+ uses : docker/build-push-action@v3
125
124
with :
126
125
context : .
127
126
push : true
@@ -154,59 +153,63 @@ jobs:
154
153
packages : write
155
154
steps :
156
155
- uses : actions/checkout@v2
157
- - uses : docker/setup-buildx-action@v1
156
+ - uses : docker/setup-buildx-action@v2
158
157
- name : Login to Docker Hub
159
- uses : docker/login-action@v1
158
+ uses : docker/login-action@v2
160
159
with :
161
- username : cloudstruct
160
+ username : blinklabs
162
161
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
163
162
- name : Login to GHCR
164
- uses : docker/login-action@v1
163
+ uses : docker/login-action@v2
165
164
with :
166
165
registry : ghcr.io
167
166
username : ${{ github.actor }}
168
167
password : ${{ secrets.GITHUB_TOKEN }}
169
168
- id : meta-dockerhub
170
169
name : Metadata - Docker Hub
171
- uses : docker/metadata-action@v3
170
+ uses : docker/metadata-action@v4
172
171
with :
173
- images : ${{ env.IMAGE_NAME }}
172
+ images : ${{ env.DOCKER_IMAGE_NAME }}
174
173
flavor : |
175
174
latest=false
176
175
tags : |
176
+ # Only version, no revision
177
+ type=match,pattern=v(.*)-(.*),group=1
177
178
# branch
178
179
type=ref,event=branch
179
180
# semver
180
181
type=semver,pattern={{version}}
181
182
- id : meta-dockerhub-tag
182
183
name : Metadata - Docker Hub (Tags)
183
- uses : docker/metadata-action@v3
184
+ uses : docker/metadata-action@v4
184
185
with :
185
186
images : |
186
- ${{ env.IMAGE_NAME }}
187
+ ${{ env.DOCKER_IMAGE_NAME }}
187
188
flavor : |
188
189
latest=false
189
190
tags : |
190
191
# Only version, no revision
191
192
type=match,pattern=v(.*)-(.*),group=1
192
193
- id : meta-ghcr
193
194
name : Metadata - GHCR
194
- uses : docker/metadata-action@v3
195
+ uses : docker/metadata-action@v4
195
196
with :
196
- images : ghcr.io/ ${{ env.IMAGE_NAME }}
197
+ images : ${{ env.GHCR_IMAGE_NAME }}
197
198
flavor : |
198
199
latest=false
199
200
tags : |
201
+ # Only version, no revision
202
+ type=match,pattern=v(.*)-(.*),group=1
200
203
# branch
201
204
type=ref,event=branch
202
205
# semver
203
206
type=semver,pattern={{version}}
204
207
- id : meta-ghcr-tag
205
208
name : Metadata - GHCR (Tags)
206
- uses : docker/metadata-action@v3
209
+ uses : docker/metadata-action@v4
207
210
with :
208
211
images : |
209
- ghcr.io/ ${{ env.IMAGE_NAME }}
212
+ ${{ env.GHCR_IMAGE_NAME }}
210
213
flavor : |
211
214
latest=false
212
215
tags : |
@@ -219,10 +222,10 @@ jobs:
219
222
run : docker manifest create ${{ steps.meta-ghcr.outputs.tags }} --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
220
223
# Optional manifest for latest
221
224
- 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
223
226
if : startsWith(github.ref, 'refs/tags/')
224
227
- 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
226
229
if : startsWith(github.ref, 'refs/tags/')
227
230
# Optional manifest for tag versions (includes revisions)
228
231
- name : manifest-dockerhub-tags
@@ -237,10 +240,10 @@ jobs:
237
240
- name : push-ghcr
238
241
run : docker manifest push ${{ steps.meta-ghcr.outputs.tags }}
239
242
- name : push-dockerhub-latest
240
- run : docker manifest push ${{ env.IMAGE_NAME }}:latest
243
+ run : docker manifest push ${{ env.DOCKER_IMAGE_NAME }}:latest
241
244
if : startsWith(github.ref, 'refs/tags/')
242
245
- 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
244
247
if : startsWith(github.ref, 'refs/tags/')
245
248
- name : push-dockerhub-tags
246
249
run : docker manifest push ${{ steps.meta-dockerhub-tag.outputs.tags }}
@@ -252,9 +255,9 @@ jobs:
252
255
- name : Docker Hub Description
253
256
uses : peter-evans/dockerhub-description@v3
254
257
with :
255
- username : cloudstruct
258
+ username : blinklabs
256
259
password : ${{ secrets.DOCKER_PASSWORD }}
257
- repository : ${{ env.IMAGE_NAME }}
260
+ repository : ${{ env.DOCKER_IMAGE_NAME }}
258
261
readme-filepath : ./README.md
259
262
short-description : " Cardano Node built from source on Debian"
260
263
0 commit comments