Skip to content

Commit

Permalink
Merge pull request #2979 from statisticsnorway/MIM-2005-add-condition…
Browse files Browse the repository at this point in the history
…-to-deploy

[MIM-2005] Try adding TTL edit to deploy script
  • Loading branch information
Glenruben authored Oct 22, 2024
2 parents 6635c30 + f21debd commit 64c9dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/delete_nais.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: NAIS Delete

on:
pull_request:
types: [closed]
on: workflow_dispatch

jobs:
delete:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy_nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down

0 comments on commit 64c9dca

Please sign in to comment.