-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.41 KB
/
deploy-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy to develop
on:
push:
branches:
- main
paths:
- config/develop.json
workflow_dispatch:
permissions:
id-token: write
concurrency:
group: deploy-develop
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: develop
url: https://dev-www.nationalarchives.gov.uk/
strategy:
matrix:
service:
- frontend
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Deploy service
uses: ./.github/actions/deploy
with:
config-file: develop.json
service-name: ${{ matrix.service }}
aws-role: arn:aws:iam::846769538626:role/GithubOIDCProviderIAMRolePermissions-Role-I80RXHT6O1PL
parameter-path: /application/web/${{ matrix.service }}/docker_images
deployed-parameter-path: /application/web/${{ matrix.service }}/deployed_version
# test:
# runs-on: ubuntu-latest
# needs:
# - deploy
# env:
# GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN_TEST_RUNNER }}
# steps:
# - uses: actions/checkout@v4
# - name: Run tests
# run: gh workflow run manual.yml --repo nationalarchives/ds-tna-website-tests --raw-field domain=https://dev-www.nationalarchives.gov.uk --raw-field notify-slack-on-pass=false --raw-field notify-slack-on-fail=true --raw-field description="$(git log -1 --pretty=%B | sed '/./,$!d' | sed '/^$/d' | sed 's/^/> /')"