Skip to content

Commit

Permalink
Merge pull request #6760 from alphagov/dj-maisy/use_multiarch_workflow
Browse files Browse the repository at this point in the history
Enable multi-arch workflow for Smart Answers
  • Loading branch information
dj-maisy committed Apr 25, 2024
2 parents 3eac174 + 8fc929f commit 82d8ada
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
build-and-publish-image:
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
name: Build and publish image
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-multiarch-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.event.release.tag_name }}
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
3.2.2
3.2
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -3,7 +3,7 @@ ARG base_image=ghcr.io/alphagov/govuk-ruby-base:$ruby_version
ARG builder_image=ghcr.io/alphagov/govuk-ruby-builder:$ruby_version


FROM $builder_image AS builder
FROM --platform=$TARGETPLATFORM $builder_image AS builder

WORKDIR $APP_HOME
COPY Gemfile* .ruby-version ./
Expand All @@ -13,7 +13,7 @@ RUN bootsnap precompile --gemfile .
RUN rails assets:precompile && rm -fr log


FROM $base_image
FROM --platform=$TARGETPLATFORM $base_image

ENV GOVUK_APP_NAME=smart-answers

Expand Down

0 comments on commit 82d8ada

Please sign in to comment.