-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (45 loc) · 1.69 KB
/
deploy-sync-check.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
name: Sync Check Service
concurrency: ci-${{ github.ref }}-sync-check
on:
pull_request:
branches:
- main
paths:
- 'tf-managed/modules/sync-check/**'
- 'tf-managed/scripts/**'
- 'tf-managed/live/environments/prod/applications/sync-check/**'
# This needs to be declared explicitly so that the job is actually
# run when moved out of draft.
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
paths:
- 'tf-managed/modules/sync-check/**'
- 'tf-managed/scripts/**'
- 'tf-managed/live/environments/prod/applications/sync-check'
workflow_dispatch:
jobs:
deploy-sync-check:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout the code
uses: actions/checkout@v4
# Using Custom Composite action in ./composite-action/terragrunt folder
- name: Composite Action for Deploying Terragrunt Resources
uses: ./composite-action/terragrunt
with:
do_token: ${{ secrets.DO_TOKEN }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
r2_access_key: ${{ secrets.R2_ACCESS_KEY }}
r2_secret_key: ${{ secrets.R2_SECRET_KEY }}
slack_token: ${{ secrets.SLACK_TOKEN }}
working_directory: tf-managed/live/environments/prod/applications/sync-check
service_name: Sync Check Service
max_retries: '5'
retry_delay_seconds: '60s'
new_relic_account_id: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
new_relic_api_key: ${{ secrets.NEW_RELIC_API_KEY }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}