Skip to content

Labs: delete historisk snapshot #61

Labs: delete historisk snapshot

Labs: delete historisk snapshot #61

name: "Labs: delete historisk snapshot"
on: delete
env:
"IMAGE": "ghcr.io/${{ github.repository }}-labs-historisk:${{ github.sha }}"
"APP_NAME": "aap-soknad-${{ github.event.ref }}"
jobs:
deploy-branch-to-labs-gcp:
if: startsWith(github.event.ref, 'labs-historisk')
name: Delete branch labs-gcp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Scale down labs-gcp
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: ".nais/historisk-labs.yaml"
VAR: image=${{ env.IMAGE }},appname=${{env.APP_NAME}},ingress=https://${{env.APP_NAME}}.ekstern.dev.nav.no,replicas=0,branchState=deleted