Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bb2cae29fd | |||
| 9cb07d9cef | |||
| 809d26349b | |||
| 63cc96d602 | |||
| 4db2abc990 | |||
| f7fa3bbd47 | |||
| 2a20398c87 | |||
| 3fe7ea4c36 |
@@ -14,9 +14,9 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Terraform/Terragrunt
|
||||
- name: Install Packages
|
||||
run: |
|
||||
dnf install terraform terragrunt jq -y
|
||||
dnf install terraform terragrunt vault jq -y
|
||||
|
||||
- name: Run Terraform Plan
|
||||
env:
|
||||
@@ -28,9 +28,9 @@ jobs:
|
||||
run: |
|
||||
find /workspace -type f -name "*.plan"
|
||||
|
||||
#- name: Upload Artifacts
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: plans
|
||||
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: plans
|
||||
path: /workspace/unkin/terraform-nomad/plans/*.plan
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@ clean:
|
||||
rm -rf plans
|
||||
|
||||
init:
|
||||
$(call vault_env) && \
|
||||
terragrunt --terragrunt-working-dir $(ENV_DIR) init
|
||||
|
||||
plan: init
|
||||
@mkdir -p $(PLAN_DIR)
|
||||
$(call vault_env)
|
||||
env | grep CONSUL
|
||||
$(call vault_env) && \
|
||||
terragrunt --terragrunt-working-dir $(ENV_DIR) plan -out=$(PLAN_FILE)
|
||||
|
||||
apply:
|
||||
$(call vault_env)
|
||||
$(call vault_env) && \
|
||||
terragrunt --terragrunt-working-dir $(ENV_DIR) apply $(PLAN_FILE)
|
||||
|
||||
Reference in New Issue
Block a user