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 6d9e56c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion terraform/deployments/ecr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ resource "aws_ecr_repository" "repositories" {

resource "aws_ecr_repository" "github_repositories" {
for_each = toset(local.repositories)
name = "github/alphagov/${each.key}"
name = "github/alphagov/govuk/${each.key}"
image_tag_mutability = "MUTABLE" # To support a movable `latest` for developer convenience.
image_scanning_configuration { scan_on_push = true }
}
Expand Down

0 comments on commit 6d9e56c

Please sign in to comment.