Skip to content

Merge pull request #288 from govuk-one-login/key-rotation-frequency #119

Merge pull request #288 from govuk-one-login/key-rotation-frequency

Merge pull request #288 from govuk-one-login/key-rotation-frequency #119

Workflow file for this run

name: AWS build and deploy
on:
workflow_dispatch:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
id-token: write
contents: read
steps:
- name: Check out repository code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
- name: Install Ruby
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # pin@v1
with:
bundler-cache: true
- name: Install Gems
run: bundle install
- name: Build
run: bundle exec middleman build
- name: Upload to ECR and tag
uses: govuk-one-login/devplatform-upload-action-ecr@5431bcea6158b6c12776a96e067b1e02bf91b13d # [email protected]
with:
role-to-assume-arn: ${{ secrets.AWS_ROLE_TO_ASSUME }}
container-sign-kms-key-arn: ${{ secrets.CONTAINER_SIGN_KMS_KEY }}
ecr-repo-name: ${{ secrets.ECR_REPOSITORY }}
artifact-bucket-name: ${{ secrets.ARTIFACT_BUCKET }}
dockerfile: "./DockerfileAWS"
checkout-repo: false