-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (40 loc) · 1.12 KB
/
deploy-unleash-api-token.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Unleash api-tokens
on:
push:
branches:
- dev
- master
- flytte-til-gcp
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-gcp
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-gcp
RESOURCE: .nais/application/unleash-apitoken-prod.yaml
PRINT_PAYLOAD: true