-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 1 KB
/
topic.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
name: "Deploy topic"
on:
push:
paths:
- nais/topics/**
- .github/workflows/topic.yaml
jobs:
deploy-topic-to-dev:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/varselbus-')
name: Deploy topic to dev
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy topic varselbus to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: nais/topics/varselbus-topic-dev.yaml
deploy-topic-to-prod:
if: github.ref == 'refs/heads/main'
name: Deploy topic to prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy topic varselbus to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: nais/topics/varselbus-topic-prod.yaml