Skip to content

Workflow file for this run

name: Deploy alerts
run-name: Deploy alerts for Maskinporten Guardian to test and prod
on:
push:
branches:
- master
paths:
- '.nais/alerts.yaml'
- '.github/workflows/alert-deploy.yml'
workflow_dispatch:
permissions:
id-token: write
jobs:
test-deploy:
name: Deploy alerts to test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to test
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: test
RESOURCE: .nais/alerts.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
test-deploy-alert-config:
uses: statisticsnorway/dapla-stat-iac/.github/workflows/alertconfig_deploy.yaml@main

Check failure on line 30 in .github/workflows/alert-deploy.yml

GitHub Actions / .github/workflows/alert-deploy.yml

Invalid workflow file

error parsing called workflow ".github/workflows/alert-deploy.yml" -> "statisticsnorway/dapla-stat-iac/.github/workflows/alertconfig_deploy.yaml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
cluster: test
prod-deploy:
name: Deploy alerts to prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod
RESOURCE: .nais/alerts.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
prod-deploy-alert-config:
uses: statisticsnorway/dapla-stat-iac/.github/workflows/alertconfig_deploy.yaml@main
with:
cluster: prod