Skip to content

Commit

Permalink
IS-1921: deploy v2 (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad authored Feb 20, 2024
1 parent 4277c9b commit ff38f3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
apply-alerts:
name: Apply alerts to cluster
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: deploy to dev
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/alerts-dev.yaml
- name: deploy to prod
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .nais/alerts-prod.yaml
9 changes: 5 additions & 4 deletions .github/workflows/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ on:
- '.github/workflows/kafka.yaml'
- '.nais/kafka/**'

permissions:
id-token: write

jobs:
deploy-kafka-dev:
name: Deploy Kafka topic to NAIS dev-gcp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/kafka/personoppgavehendelse.yaml
VARS: .nais/kafka/dev.json
Expand All @@ -27,9 +29,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .nais/kafka/personoppgavehendelse.yaml
VARS: .nais/kafka/prod.json
Expand Down

0 comments on commit ff38f3e

Please sign in to comment.