Skip to content

Merge pull request #1516 from navikt/tc-555-upgrade-deploy-action #10

Merge pull request #1516 from navikt/tc-555-upgrade-deploy-action

Merge pull request #1516 from navikt/tc-555-upgrade-deploy-action #10

name: Unleash api-tokens
on:
push:
branches:
- dev
- master
paths:
- '.github/workflows/deploy-unleash-api-token.yaml'
- '.nais/application/unleash-apitoken-dev.yaml'
- '.nais/application/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-fss
RESOURCE: .nais/application/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-fss
RESOURCE: .nais/application/unleash-apitoken-prod.yaml
PRINT_PAYLOAD: true