Skip to content

Update github workflow #22

Update github workflow

Update github workflow #22

name: Unleash api-tokens
on:
push:
branches:
- dev
- master
- flytte-til-gcp
paths:
- '.github/workflows/deploy-unleash-api-token.yaml'
- '.nais/application/gcp/unleash-apitoken-dev.yaml'
- '.nais/application/gcp/unleash-apitoken-prod.yaml'
permissions:
id-token: write
jobs:
deploy-dev:
name: Deploy unleash-apitoken to dev
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy unleash-apitoken
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/application/gcp/unleash-apitoken-dev.yaml
PRINT_PAYLOAD: true
deploy-prod:
name: Deploy unleash-apitoken to prod
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy unleash-apitoken
uses: nais/deploy/actions/deploy@v2
if: github.ref == 'refs/heads/master'
env:
CLUSTER: prod-gcp
RESOURCE: .nais/application/gcp/unleash-apitoken-prod.yaml
PRINT_PAYLOAD: true