Update .gitea/workflows/tf-apply.yml

This commit is contained in:
2023-12-14 10:52:33 +02:00
committed by Gitea Bot
parent 5f30ddec94
commit 7583d705fe

View File

@@ -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