Skip to content

Commit

Permalink
Started to update and write dockers files to make this run
Browse files Browse the repository at this point in the history
  • Loading branch information
TobySaundersGDS committed Jun 19, 2024
1 parent bd0101e commit da476c2
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check pull request
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize

jobs:
check-pull-request:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
- name: Install Ruby
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # pin@v1
with:
bundler-cache: true
- name: setup python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4
- name: install linter
run: pip install vale==3.0.7
- name: Vale configuration
run: vale sync
- name: Build
run: bundle exec middleman build --verbose
- name: Vale check
run: vale source/
43 changes: 43 additions & 0 deletions .github/workflows/deploy-to-aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: AWS build and deploy

on:
schedule:
- cron: '00 6 * * *' # deploy at 6am to get updated readmes
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@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
- name: Install Ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # 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@2670d3fde00e5e9eed187135e853f273763cab02 # [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

0 comments on commit da476c2

Please sign in to comment.