From f21debdd84e46ee0738eb6910019f70723969e46 Mon Sep 17 00:00:00 2001 From: Glenruben Larsen Date: Tue, 22 Oct 2024 16:28:19 +0200 Subject: [PATCH] Try adding TTL edit to deploy script --- .github/workflows/delete_nais.yaml | 4 +--- .github/workflows/deploy_nais.yaml | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/delete_nais.yaml b/.github/workflows/delete_nais.yaml index d51a46bbe..08c3758f9 100644 --- a/.github/workflows/delete_nais.yaml +++ b/.github/workflows/delete_nais.yaml @@ -1,8 +1,6 @@ name: NAIS Delete -on: - pull_request: - types: [closed] +on: workflow_dispatch jobs: delete: diff --git a/.github/workflows/deploy_nais.yaml b/.github/workflows/deploy_nais.yaml index 50889bc7f..238c85e49 100644 --- a/.github/workflows/deploy_nais.yaml +++ b/.github/workflows/deploy_nais.yaml @@ -41,6 +41,11 @@ jobs: - name: Checkout mimir uses: actions/checkout@v4 + - name: Edit TTL for Undeploy + if: github.event.pull_request.merged == true + run: | + sed -i 's/ttl: .*/ttl: "10m"/' nais.yaml + - name: Give GitHub Actions acces to docker repo uses: webfactory/ssh-agent@v0.9.0 with: