Skip to content

Commit

Permalink
Merge pull request #8992 from alphagov/dj-maisy/arm64-builds
Browse files Browse the repository at this point in the history
Add ARM Builds for Whitehall
  • Loading branch information
dj-maisy authored Apr 24, 2024
2 parents b86e358 + 9fc7fca commit 53dde02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG ruby_version=3.2.2
ARG ruby_version=3.2.3
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

ENV JWT_AUTH_SECRET=unused_yet_required

Expand All @@ -17,7 +17,7 @@ RUN bootsnap precompile --gemfile .
RUN SECRET_KEY_BASE_DUMMY=1 rails assets:precompile && rm -fr log


FROM $base_image
FROM --platform=$TARGETPLATFORM $base_image
RUN install_packages ghostscript imagemagick unzip

ENV GOVUK_APP_NAME=whitehall
Expand Down

0 comments on commit 53dde02

Please sign in to comment.