Compare commits
1 Commits
ce8483f9fa
...
a3ca117ff6
| Author | SHA1 | Date | |
|---|---|---|---|
| a3ca117ff6 |
@ -22,15 +22,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
VAULT_ROLEID: ${{ secrets.TERRAFORM_NOMAD_VAULT_ROLEID }}
|
VAULT_ROLEID: ${{ secrets.TERRAFORM_NOMAD_VAULT_ROLEID }}
|
||||||
run: |
|
run: |
|
||||||
|
env
|
||||||
make plan
|
make plan
|
||||||
|
|
||||||
- name: Show Plans
|
- name: Show Plans
|
||||||
run: |
|
run: |
|
||||||
find /workspace -type f -name "*.plan"
|
find /workspace -type f -name "*.plan"
|
||||||
|
|
||||||
- name: Upload Artifacts
|
#- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: plans
|
# name: plans
|
||||||
path: /workspace/unkin/terraform-nomad/plans/*.plan
|
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
|
||||||
|
|
||||||
|
|||||||
@ -1,36 +0,0 @@
|
|||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows:
|
|
||||||
- Build
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
runs-on: almalinux-8
|
|
||||||
container:
|
|
||||||
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
|
|
||||||
options: --privileged
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: plans
|
|
||||||
path: /workspace/unkin/terraform-nomad/plans
|
|
||||||
|
|
||||||
- name: Install Terraform/Terragrunt
|
|
||||||
run: |
|
|
||||||
dnf install terraform terragrunt vault jq -y
|
|
||||||
|
|
||||||
- name: Run Terraform Apply
|
|
||||||
env:
|
|
||||||
VAULT_ROLEID: ${{ secrets.TERRAFORM_NOMAD_VAULT_ROLEID }}
|
|
||||||
run: |
|
|
||||||
make apply
|
|
||||||
Loading…
Reference in New Issue
Block a user