File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check pull request
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - opened
6
+ - reopened
7
+ - ready_for_review
8
+ - synchronize
9
+
10
+ jobs :
11
+ check-pull-request :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Check out repository code
15
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
16
+ - name : Install Ruby
17
+ uses : ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # pin@v1
18
+ with :
19
+ bundler-cache : true
20
+ - name : setup python
21
+ uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4
22
+ - name : install linter
23
+ run : pip install vale==3.0.7
24
+ - name : Vale configuration
25
+ run : vale sync
26
+ - name : Build
27
+ run : bundle exec middleman build --verbose
28
+ - name : Vale check
29
+ run : vale source/
Original file line number Diff line number Diff line change
1
+ name : AWS build and deploy
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 00 6 * * *' # deploy at 6am to get updated readmes
6
+ workflow_dispatch :
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ defaults :
12
+ run :
13
+ shell : bash
14
+
15
+ jobs :
16
+ deploy :
17
+ runs-on : ubuntu-latest
18
+ timeout-minutes : 60
19
+ permissions :
20
+ id-token : write
21
+ contents : read
22
+ steps :
23
+ - name : Check out repository code
24
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
25
+ - name : Install Ruby
26
+ uses : ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # pin@v1
27
+ with :
28
+ bundler-cache : true
29
+ - name : Install Gems
30
+ run : bundle install
31
+
32
+ - name : Build
33
+ run : bundle exec middleman build
34
+
35
+ - name : Upload to ECR and tag
36
+ uses :
govuk-one-login/devplatform-upload-action-ecr@2670d3fde00e5e9eed187135e853f273763cab02 # [email protected]
37
+ with :
38
+ role-to-assume-arn : ${{ secrets.AWS_ROLE_TO_ASSUME }}
39
+ container-sign-kms-key-arn : ${{ secrets.CONTAINER_SIGN_KMS_KEY }}
40
+ ecr-repo-name : ${{ secrets.ECR_REPOSITORY }}
41
+ artifact-bucket-name : ${{ secrets.ARTIFACT_BUCKET }}
42
+ dockerfile : ' ./DockerfileAWS'
43
+ checkout-repo : false
You can’t perform that action at this time.
0 commit comments