Skip to content

Commit 196a960

Browse files
authored
Merge pull request #17 from blinklabs-io/chore/ci-split-image-names
chore(ci): split image names for publishing
2 parents 7e215b6 + 9f6b39b commit 196a960

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
concurrency: ${{ github.ref }}
99

1010
env:
11-
IMAGE_NAME: blinklabs/cardano-db-sync
11+
DOCKER_IMAGE_NAME: blinklabs/cardano-db-sync
12+
GHCR_IMAGE_NAME: ghcr.io/blinklabs-io/cardano-db-sync
1213

1314
jobs:
1415

@@ -41,7 +42,7 @@ jobs:
4142
uses: docker/metadata-action@v4
4243
with:
4344
images: |
44-
${{ env.IMAGE_NAME }}
45+
${{ env.GHCR_IMAGE_NAME }}
4546
flavor: |
4647
latest=false
4748
suffix=-amd64
@@ -107,7 +108,7 @@ jobs:
107108
uses: docker/metadata-action@v4
108109
with:
109110
images: |
110-
${{ env.IMAGE_NAME }}
111+
${{ env.GHCR_IMAGE_NAME }}
111112
flavor: |
112113
latest=false
113114
suffix=-arm64v8
@@ -168,7 +169,7 @@ jobs:
168169
name: Metadata - Docker Hub
169170
uses: docker/metadata-action@v4
170171
with:
171-
images: ${{ env.IMAGE_NAME }}
172+
images: ${{ env.DOCKER_IMAGE_NAME }}
172173
flavor: |
173174
latest=false
174175
tags: |
@@ -183,7 +184,7 @@ jobs:
183184
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: |
@@ -193,7 +194,7 @@ jobs:
193194
name: Metadata - GHCR
194195
uses: docker/metadata-action@v4
195196
with:
196-
images: ghcr.io/${{ github.repository }}
197+
images: ${{ env.GHCR_IMAGE_NAME }}
197198
flavor: |
198199
latest=false
199200
tags: |
@@ -208,7 +209,7 @@ jobs:
208209
uses: docker/metadata-action@v4
209210
with:
210211
images: |
211-
ghcr.io/${{ github.repostory }}
212+
${{ env.GHCR_IMAGE_NAME }}
212213
flavor: |
213214
latest=false
214215
tags: |
@@ -221,10 +222,10 @@ jobs:
221222
run: docker manifest create ${{ steps.meta-ghcr.outputs.tags }} --amend ${{ steps.meta-ghcr.outputs.tags }}-amd64 --amend ${{ steps.meta-ghcr.outputs.tags }}-arm64v8
222223
# Optional manifest for latest
223224
- name: manifest-dockerhub-latest
224-
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
225226
if: startsWith(github.ref, 'refs/tags/')
226227
- name: manifest-ghcr-latest
227-
run: docker manifest create ghcr.io/${{ github.repository }}: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
228229
if: startsWith(github.ref, 'refs/tags/')
229230
# Optional manifest for tag versions (includes revisions)
230231
- name: manifest-dockerhub-tags
@@ -239,10 +240,10 @@ jobs:
239240
- name: push-ghcr
240241
run: docker manifest push ${{ steps.meta-ghcr.outputs.tags }}
241242
- name: push-dockerhub-latest
242-
run: docker manifest push ${{ env.IMAGE_NAME }}:latest
243+
run: docker manifest push ${{ env.DOCKER_IMAGE_NAME }}:latest
243244
if: startsWith(github.ref, 'refs/tags/')
244245
- name: push-ghcr-latest
245-
run: docker manifest push ghcr.io/${{ github.repository }}:latest
246+
run: docker manifest push ${{ env.GHCR_IMAGE_NAME }}:latest
246247
if: startsWith(github.ref, 'refs/tags/')
247248
- name: push-dockerhub-tags
248249
run: docker manifest push ${{ steps.meta-dockerhub-tag.outputs.tags }}
@@ -256,9 +257,9 @@ jobs:
256257
with:
257258
username: blinklabs
258259
password: ${{ secrets.DOCKER_PASSWORD }}
259-
repository: ${{ env.IMAGE_NAME }}
260+
repository: ${{ env.DOCKER_IMAGE_NAME }}
260261
readme-filepath: ./README.md
261-
short-description: "Cardano Node built from source on Debian"
262+
short-description: "Cardano DB-sync built from source on Debian"
262263

263264
github-release:
264265
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)