Compare commits
2 commits
dc49717829
...
d362b9fdcf
Author | SHA1 | Date | |
---|---|---|---|
d362b9fdcf | |||
1fc36c9cea |
3 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
ci:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||||
|
|
|
@ -38,10 +38,10 @@ e2e:
|
||||||
cd e2e-test && \
|
cd e2e-test && \
|
||||||
rm -rf .terraform/ .terraform.lock.hcl terraform.tfstate* && \
|
rm -rf .terraform/ .terraform.lock.hcl terraform.tfstate* && \
|
||||||
./setup-dev.sh && \
|
./setup-dev.sh && \
|
||||||
TF_CLI_CONFIG_FILE=.terraformrc terraform plan && \
|
TF_CLI_CONFIG_FILE=.terraformrc tofu plan && \
|
||||||
TF_CLI_CONFIG_FILE=.terraformrc terraform apply -auto-approve && \
|
TF_CLI_CONFIG_FILE=.terraformrc tofu apply -auto-approve && \
|
||||||
echo "✓ E2E test passed! Cleaning up..." && \
|
echo "✓ E2E test passed! Cleaning up..." && \
|
||||||
TF_CLI_CONFIG_FILE=.terraformrc terraform destroy -auto-approve && \
|
TF_CLI_CONFIG_FILE=.terraformrc tofu destroy -auto-approve && \
|
||||||
echo "✓ E2E test completed successfully"
|
echo "✓ E2E test completed successfully"
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
|
|
|
@ -43,6 +43,6 @@ echo " ./tf plan"
|
||||||
echo " ./tf apply"
|
echo " ./tf apply"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Or use the full command:"
|
echo "Or use the full command:"
|
||||||
echo " TF_CLI_CONFIG_FILE=.terraformrc terraform plan"
|
echo " TF_CLI_CONFIG_FILE=.terraformrc tofu plan"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Note: Using local .terraformrc to avoid modifying your global configuration."
|
echo "Note: Using local .terraformrc to avoid modifying your global configuration."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue