From 94a56013451e91221a156d7ff5ee2883cd4091df Mon Sep 17 00:00:00 2001 From: Johnny Niklasson Date: Fri, 10 Jan 2025 13:19:27 +0100 Subject: [PATCH] alert-deploy.yml (#120) --- .github/workflows/alert-deploy.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/alert-deploy.yml diff --git a/.github/workflows/alert-deploy.yml b/.github/workflows/alert-deploy.yml new file mode 100644 index 0000000..68eae11 --- /dev/null +++ b/.github/workflows/alert-deploy.yml @@ -0,0 +1,40 @@ +name: Deploy alerts +run-name: Deploy alerts for pseudo-service to dev and prod + +on: + push: + branches: + - master + - nais-deploy + paths: + - '.nais/alerts.yaml' + - '.github/workflows/alert-deploy.yml' +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 + + 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 \ No newline at end of file