Skip to content

Revert "feat. oppdatere index på status for arena-events tabell" #330

Revert "feat. oppdatere index på status for arena-events tabell"

Revert "feat. oppdatere index på status for arena-events tabell" #330

name: Bygg og deploy
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
build:
name: Bygg
permissions:
contents: read
id-token: write
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
runs-on: ubuntu-latest
steps:
- name: Sjekk ut kode
uses: actions/checkout@v4
- name: Oppsett Java 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Bygg og test med Maven
run: mvn package -B -Dsurefire.useFile=false
- name: Push docker image to GAR
uses: nais/docker-build-push@v0
id: docker-build-push
with:
byosbom: target/bom.json
team: arbeidsgiver
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
deploy-dev:
name: Deploy til dev
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
id-token: write
steps:
- name: Sjekk ut kode
uses: actions/checkout@v4
- name: Deploy til dev-fss
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-fss
RESOURCE: nais/dev-fss.yaml,nais/unleash-apitoken.yml
VAR: image=${{ needs.build.outputs.image }},unleash-environment=development
deploy-prod:
name: Deploy til prod
runs-on: ubuntu-latest
needs: [build, deploy-dev]
if: github.ref == 'refs/heads/master'
permissions:
contents: read
id-token: write
steps:
- name: Sjekk ut kode
uses: actions/checkout@v4
- name: Deploy til prod-fss
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-fss
RESOURCE: nais/prod-fss.yaml,nais/alerterator.yaml,nais/unleash-apitoken.yml
VAR: image=${{ needs.build.outputs.image }},unleash-environment=production