-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (37 loc) · 1.46 KB
/
deploy-frontend-sp.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
name: Deploy frontend (with SAM Deploy Pipeline)
on:
push:
branches:
- AUT-2930
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and push basic-auth-sidecar image
uses: govuk-one-login/[email protected]
with:
role-to-assume-arn: ${{ secrets.GH_ACTIONS_ROLE_ARN }}
container-sign-kms-key-arn: ${{ secrets.CONTAINER_SIGN_KMS_KEY_ARN }}
build-and-push-image-only: true
working-directory: basic-auth-sidecar
artifact-bucket-name: ${{ secrets.ARTIFACT_SOURCE_BUCKET_NAME }}
ecr-repo-name: ${{ secrets.BASIC_AUTH_SIDECAR_ECR_REPOSITORY }}
checkout-repo: false
- name: Build, push and deploy frontend
uses: govuk-one-login/[email protected]
with:
role-to-assume-arn: ${{ secrets.GH_ACTIONS_ROLE_ARN }}
container-sign-kms-key-arn: ${{ secrets.CONTAINER_SIGN_KMS_KEY_ARN }}
artifact-bucket-name: ${{ secrets.ARTIFACT_SOURCE_BUCKET_NAME }}
ecr-repo-name: ${{ secrets.FRONTEND_ECR_REPOSITORY }}
checkout-repo: false
private-docker-registry: khw46367.live.dynatrace.com
private-docker-login-username: khw46367
private-docker-login-password: ${{ secrets.DYNATRACE_PAAS_TOKEN }}