Skip to content

trigge workflow uten å være på dev #11

trigge workflow uten å være på dev

trigge workflow uten å være på dev #11

name: Unleash api-tokens
on:
push:
paths:
- '.github/workflows/deploy-unleash-api-token.yaml'
- '.nais/application/unleash-apitoken-dev.yaml'
- '.nais/application/unleash-apitoken-prod.yaml'
jobs:
deploy-dev:
name: Deploy unleash-apitoken to dev
permissions:
id-token: write
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
permissions:
id-token: write
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