-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1.19 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
name: Sync Check Service
concurrency: ci-${{ github.ref }}
on:
pull_request:
branches:
- main
paths:
- 'terraform/sync_check/**'
- 'terraform/modules/sync_check/**'
push:
branches:
- main
paths:
- 'terraform/sync_check/**'
- 'terraform/modules/sync_check/**'
workflow_dispatch:
jobs:
sync-check:
name: Deploy
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout the code
uses: actions/checkout@v4
# Using Custom Composite action in ./composite-action/terraform folder
- name: Composite Action for Deploying Terraform Resources
uses: ./composite-action/terraform
with:
do_token: ${{ secrets.DO_TOKEN }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
slack_token: ${{ secrets.SLACK_TOKEN }}
working_directory: terraform/sync_check
environment: Sync Check Service
new_relic_account_id: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
new_relic_api_key: ${{ secrets.NEW_RELIC_API_KEY }}