Skip to content

Aktiverer OpenTelemetry i prod. #152

Aktiverer OpenTelemetry i prod.

Aktiverer OpenTelemetry i prod. #152

Workflow file for this run

# This workflow trigger on push to any branch.
name: Alerts
on:
push:
paths:
- 'nais/alerterator-*'
- 'nais/dev-gcp.json'
- 'nais/prod-gcp.json'
- '.github/workflows/apply-alerts.yml'
branches:
- 'master'
- 'dev-**'
jobs:
deploy-dev-gcp:
name: Deploy to dev-gcp
if: startsWith(github.ref, 'refs/heads/dev-') || startsWith(github.ref, 'refs/heads/master') # Deploy if branch is either master or dev-*
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: nais/alerterator-dev.yml
VARS: nais/dev-gcp.json
deploy-prod-gcp:
name: Deploy to prod-gcp
if: startsWith(github.ref, 'refs/heads/master') # If the branch is master
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: nais/alerterator-prod.yml
VARS: nais/prod-gcp.json