Skip to content

Bump no.nav.security:mock-oauth2-server from 0.5.7 to 2.0.1 #203

Bump no.nav.security:mock-oauth2-server from 0.5.7 to 2.0.1

Bump no.nav.security:mock-oauth2-server from 0.5.7 to 2.0.1 #203

Workflow file for this run

name: Build and deploy
on: [ push ]
jobs:
build:
permissions:
contents: "read"
id-token: "write"
name: Build and publish Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.0.0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2.8.0
with:
arguments: check build
- uses: nais/docker-build-push@v0
name: docker-build-push
id: docker-build-push
with:
team: teamdagpenger
tag: latest
push_image: true # optional, default true
dockerfile: Dockerfile # optional, default Dockerfile
docker_context: . # optional, default .
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag_latest: true # optional, default false
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
deploy-dev:
name: Deploy to dev
needs: [build]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment: dev-fss
steps:
- uses: actions/checkout@v4.0.0
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
RESOURCE: nais/dev/nais.yaml
VARS: nais/vars.yaml
VAR: image=${{ needs.build.outputs.image }}
PRINT_PAYLOAD: true
deploy-prod:
name: Deploy to Production
needs: [build, deploy-dev]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment: prod-fss
steps:
- uses: actions/checkout@v4.0.0
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: nais/prod/nais.yaml
VARS: nais/vars.yaml
VAR: image=${{ needs.build.outputs.image }}
PRINT_PAYLOAD: true