From 34fc340aa4418735269dd6ce9eb50de73091687c Mon Sep 17 00:00:00 2001 From: PranoSA Date: Wed, 21 Feb 2024 17:16:03 -0800 Subject: [PATCH] Added Volume to share terraform state accross scripts --- .github/workflows/push_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_docker.yml b/.github/workflows/push_docker.yml index a2642e0..f2e8b0d 100644 --- a/.github/workflows/push_docker.yml +++ b/.github/workflows/push_docker.yml @@ -39,10 +39,10 @@ jobs: target: american - name: test american image run: | - docker run pcadler/unicode-terraform-plugin:american-latest + docker run -v terraform:/home/app/america-themed-app pcadler/unicode-terraform-plugin:american-latest - name: run terraform destroy run: | - docker run pcadler/unicode-terraform-plugin:american-latest terraform destroy -auto-approve + docker run --entrypoint "terraform" -v terraform:/home/app/america-themed-app pcadler/unicode-terraform-plugin:american-latest destroy -auto-approve - name: Build and push amphibian image uses: docker/build-push-action@v2