-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 969 Bytes
/
Copy pathcd.yml
File metadata and controls
52 lines (40 loc) · 969 Bytes
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
50
51
52
name: Deploy App
on:
workflow_run:
workflows: ["Build and Lint"]
types: [requested]
concurrency:
group: cd-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VAULT_ADDR: "https://localhost:8200"
jobs:
deploy-vault:
uses: ./.github/workflows/vault.yml
secrets: inherit
deploy-app:
needs: [deploy-vault]
defaults:
run:
working-directory: "${{ github.workspace }}/tf"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: debug
run: |
docker ps
docker images
docker network ls
- uses: hashicorp/setup-terraform@v2
- id: init
run: |
terraform init
- id: plan
run: |
terraform plan -no-color
- id: apply
run: |
terraform apply -auto-approve -no-color ${{ steps.plan.outputs.stdout }}
- run: |
terraform show
docker ps