Skip to content

Commit

Permalink
Add govuk/ namespace for images in ghcr.io
Browse files Browse the repository at this point in the history
As our GitHub org is shared with other programmes, we namespace packages
by programme name.
  • Loading branch information
theseanything committed Jul 9, 2024
1 parent 297182c commit d8bc0eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
with:
images: |
${{ steps.login-ecr.outputs.registry }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/govuk/${{ inputs.ecrRepositoryName }}
tags: |
type=raw,priority=500,value=${{ inputs.gitRef }},enable=${{ startsWith(inputs.gitRef, 'v') }}
type=raw,priority=400,value=${{ steps.local-head.outputs.sha }},enable=${{ !startsWith(inputs.gitRef, 'v') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-multiarch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
with:
images: |
${{ steps.login-ecr.outputs.registry }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/govuk/${{ inputs.ecrRepositoryName }}
labels: |
org.opencontainers.image.vendor=GDS
tags: |
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
with:
images: |
${{ steps.login-ecr.outputs.registry }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/${{ inputs.ecrRepositoryName }}
ghcr.io/${{ github.repository_owner }}/govuk/${{ inputs.ecrRepositoryName }}
labels: |
org.opencontainers.image.vendor=GDS
tags: |
Expand Down

0 comments on commit d8bc0eb

Please sign in to comment.