Skip to content

Commit

Permalink
Testing load: true as suggested by GH Issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-maisy committed Mar 25, 2024
1 parent 9f9bbec commit a115573
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build-multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ jobs:
latest=false
images: |
${{ env.REGISTRY_BASE }}/govuk-ruby-base
tags: |
type=semver,pattern={{raw}},value=${{ join(matrix.version.rubyver, '.') }}
type=raw,value=latest,enable=${{ matrix.version.extra == 'latest' }}
type=sha,enable=true,prefix=${{ join(matrix.version.rubyver, '.') }}-,format=short
type=sha,enable=true,priority=100,format=long,prefix=${{ join(matrix.version.rubyver, '.') }}-
labels: |
org.opencontainers.image.title=govuk-ruby-base
org.opencontainers.image.authors=GOV.UK Platform Engineering
Expand All @@ -98,6 +103,11 @@ jobs:
latest=false
images: |
${{ env.REGISTRY_BASE }}/govuk-ruby-builder
tags: |
type=semver,pattern={{raw}}value=${{ join(matrix.version.rubyver, '.') }}
type=raw,value=latest,enable=${{ matrix.version.extra == 'latest' }}
type=sha,enable=true,prefix=${{ join(matrix.version.rubyver, '.') }}-,format=short
type=sha,enable=true,priority=100,format=long,prefix=${{ join(matrix.version.rubyver, '.') }}-
labels: |
org.opencontainers.image.title=govuk-ruby-builder
org.opencontainers.image.authors=GOV.UK Platform Engineering
Expand All @@ -112,16 +122,15 @@ jobs:
with:
file: base.Dockerfile
context: .
push: false
platforms: "linux/${{ matrix.arch }}"
load: true
provenance: false
build-args: |
RUBY_MAJOR=${{ matrix.version.rubyver[0] }}.${{ matrix.version.rubyver[1] }}
RUBY_VERSION=${{ join(matrix.version.rubyver, '.') }}
RUBY_CHECKSUM=${{ matrix.version.checksum }}
tags: ${{ steps.base-image-metadata.outputs.tags }}
labels: ${{ steps.base-image-metadata.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_BASE }}/govuk-ruby-base,push-by-digest=true,name-canonical=true
outputs: type=image,name=${{ env.REGISTRY_BASE }}/govuk-ruby-base,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-base-${{ matrix.arch }}
cache-to: type=gha,scope=build-base-${{ matrix.arch }},mode=max

Expand All @@ -132,15 +141,15 @@ jobs:
context: .
push: false
platforms: "linux/${{ matrix.arch }}"
load: true
provenance: false
build-args: |
RUBY_MAJOR=${{ matrix.version.rubyver[0] }}.${{ matrix.version.rubyver[1] }}
RUBY_VERSION=${{ join(matrix.version.rubyver, '.') }}
RUBY_CHECKSUM=${{ matrix.version.checksum }}
OWNER=${{ github.repository_owner }}
tags: ${{ steps.builder-image-metadata.outputs.tags }}
labels: ${{ steps.builder-image-metadata.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_BASE }}/govuk-ruby-builder,push-by-digest=true,name-canonical=true
outputs: type=image,name=${{ env.REGISTRY_BASE }}/govuk-ruby-builder,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-builder-${{ matrix.arch }}
cache-to: type=gha,scope=build-builder-${{ matrix.arch }},mode=max

Expand Down

0 comments on commit a115573

Please sign in to comment.