Skip to content

Commit

Permalink
Can't apply.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jun 23, 2022
1 parent 4c32b44 commit 98b2e61
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
env:
VAULT_DEV_ROOT_TOKEN_ID: "simple"
VAULT_LICENSE: "${{ secrets.VAULT_LICENSE }}"
# VAULT_LOCAL_CONFIG: '{"disable_mlock": true, "backend": {"file": {"path": "/vault/file"}}'
VAULT_LOCAL_CONFIG: '{"disable_mlock": true, "backend": {"raft": {"path": "/vault/raft", "node_id": "raft_node_1"}, "cluster_addr": "http://127.0.0.1:8201"}'
ports:
- 8200:8200
steps:
Expand All @@ -52,21 +50,23 @@ jobs:
with:
action: plan
directory: ./examples/${{ matrix.config.name }}
- name: terraform apply
uses: robertdebock/terraform-action@1.1.2
with:
action: apply
directory: ./examples/${{ matrix.config.name }}
env:
TF_CLI_ARGS: "-input=false -auto-approve"
- name: terraform destroy
uses: robertdebock/terraform-action@1.1.2
with:
action: destroy
directory: ./examples/${{ matrix.config.name }}
if: ${{ always() }}
env:
TF_CLI_ARGS: "-input=false -auto-approve"
# Can't apply; the vault container does not use raft:
# `* raft storage is not in use`.
# - name: terraform apply
# uses: robertdebock/terraform-action@1.1.2
# with:
# action: apply
# directory: ./examples/${{ matrix.config.name }}
# env:
# TF_CLI_ARGS: "-input=false -auto-approve"
# - name: terraform destroy
# uses: robertdebock/terraform-action@1.1.2
# with:
# action: destroy
# directory: ./examples/${{ matrix.config.name }}
# if: ${{ always() }}
# env:
# TF_CLI_ARGS: "-input=false -auto-approve"
- name: check container logs
run: 'docker logs $(docker ps -aql)'
if: ${{ failure() }}
Expand Down

0 comments on commit 98b2e61

Please sign in to comment.