Skip to content

Deploy to staging

Deploy to staging #981

name: Deploy to staging
on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
workflow_dispatch:
jobs:
build-staging:
name: Build image
if: github.event.pull_request.draft == false
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-portal
environment: staging
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy to staging environment
if: github.actor != 'dependabot[bot]'
needs: build-staging
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: fdk-portal
environment: staging
cluster: digdir-fdk-dev
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}