From 66bdf6e09093e78c6ba91e9f981466aa7d23e249 Mon Sep 17 00:00:00 2001 From: David Mays Date: Fri, 17 May 2024 17:33:26 +0100 Subject: [PATCH] Enable ARM for Static app --- .github/workflows/deploy.yml | 2 +- .ruby-version | 2 +- Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8322900f1..5712d966b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: diff --git a/.ruby-version b/.ruby-version index be94e6f53..351227fca 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.2 +3.2.4 diff --git a/Dockerfile b/Dockerfile index 30a1aad4e..ef42189e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./ @@ -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=static