From 98e2afa2a1fe0236f6254e82f526e0668eb7f799 Mon Sep 17 00:00:00 2001 From: Khai Do <3697686+zaro0508@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:27:43 -0700 Subject: [PATCH] Run Sceptre with prune option (#307) Sceptre should run with prune[1] option in CI workflow to allow it to remove stacks that are marked `obsolete`. [1] https://docs.sceptre-project.org/latest/docs/cli.html#cmdoption-sceptre-launch-p --- .github/workflows/rw-deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rw-deploy.yaml b/.github/workflows/rw-deploy.yaml index bc1103bf..c86e5d80 100644 --- a/.github/workflows/rw-deploy.yaml +++ b/.github/workflows/rw-deploy.yaml @@ -53,17 +53,17 @@ jobs: - name: Deploy common configuration run: > pipenv run sceptre --var-file=src/sceptre/variables/${{ inputs.sceptre-suffix }}.yaml - launch common --yes + launch common --yes --prune - name: Deploy infrastructure configuration run: > pipenv run sceptre --var-file=src/sceptre/variables/${{ inputs.sceptre-suffix }}.yaml - launch infra-${{ inputs.sceptre-suffix }} --yes + launch infra-${{ inputs.sceptre-suffix }} --yes --prune - name: Deploy projects configuration run: > pipenv run sceptre --var-file=src/sceptre/variables/${{ inputs.sceptre-suffix }}.yaml - launch projects-${{ inputs.sceptre-suffix }} --yes + launch projects-${{ inputs.sceptre-suffix }} --yes --prune - name: Wait for Nextflow Tower to be up uses: nev7n/wait_for_response@v1