TSFF-163 Endringer i kontrakt mot los for å støtte oppgave v3 (#1086) #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy kafka topics | |
on: | |
push: | |
paths: | |
- 'kafka/topics/**' | |
- 'kafka/dev-vars.yaml' | |
- 'kafka/prod-vars.yaml' | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy-topics: | |
strategy: | |
matrix: | |
topic: [punsjbar-journalpost, punsj-aksjonspunkthendelse-v1, k9-punsj-til-los] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy topics to dev | |
uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-gcp | |
RESOURCE: kafka/topics/${{ matrix.topic }}.yaml | |
VARS: kafka/dev-vars.yaml | |
- name: Deploy topics to prod | |
if: github.ref == 'refs/heads/master' | |
uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: prod-gcp | |
RESOURCE: kafka/topics/${{ matrix.topic }}.yaml | |
VARS: kafka/prod-vars.yaml |