Update .gitea/workflows/tf-apply.yml
This commit is contained in:
@@ -33,8 +33,8 @@ jobs:
|
|||||||
id: check
|
id: check
|
||||||
run: |
|
run: |
|
||||||
ls -laR .
|
ls -laR .
|
||||||
echo "code=$(cat ${{steps.download.outputs.download-path}}/artifacts/exitcode)" >> $GITHUB_OUTPUT
|
echo "code=$(cat ${{steps.download.outputs.download-path}}/exitcode)" >> $GITHUB_OUTPUT
|
||||||
if [ "$(cat ${{steps.download.outputs.download-path}}/artifacts/exitcode)" -lt 2 ]; then
|
if [ "$(cat ${{steps.download.outputs.download-path}}/exitcode)" -lt 2 ]; then
|
||||||
exit "$(cat exitcode)";
|
exit "$(cat exitcode)";
|
||||||
fi
|
fi
|
||||||
- name: Clone blackbox repo
|
- name: Clone blackbox repo
|
||||||
@@ -89,8 +89,7 @@ jobs:
|
|||||||
if: ${{ steps.check.outputs.code == 2 }}
|
if: ${{ steps.check.outputs.code == 2 }}
|
||||||
id: tfplan
|
id: tfplan
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: terraform apply -input=false -auto-approve tfplan.binary;
|
||||||
terraform apply -input=false -auto-approve tfplan.binary;
|
|
||||||
- name: Save terraform cache
|
- name: Save terraform cache
|
||||||
if: ${{ steps.check.outputs.code == 2 }}
|
if: ${{ steps.check.outputs.code == 2 }}
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user