Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ce8483f9fa |
@@ -2,9 +2,6 @@ name: Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -17,7 +14,7 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Terraform/Terragrunt
|
||||||
run: |
|
run: |
|
||||||
dnf install terraform terragrunt vault jq -y
|
dnf install terraform terragrunt vault jq -y
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
branches:
|
workflows:
|
||||||
- master
|
- Build
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: almalinux-8
|
runs-on: almalinux-8
|
||||||
container:
|
container:
|
||||||
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
|
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
|
||||||
@@ -22,7 +25,7 @@ jobs:
|
|||||||
name: plans
|
name: plans
|
||||||
path: /workspace/unkin/terraform-nomad/plans
|
path: /workspace/unkin/terraform-nomad/plans
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Terraform/Terragrunt
|
||||||
run: |
|
run: |
|
||||||
dnf install terraform terragrunt vault jq -y
|
dnf install terraform terragrunt vault jq -y
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user