NY: inntektsfilter "Skattepliktig godtgjørelse særavtale utland" #274
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy | |
on: [push] | |
env: | |
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }} | |
jobs: | |
build: | |
name: Build and publish Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
# arguments: --configuration-cache | |
arguments: check build | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
tags: ${{ env.IMAGE }} | |
push: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
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@v3 | |
- uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-fss | |
RESOURCE: nais/dev/nais.yaml,nais/grpc-svc.yaml | |
VARS: nais/vars.yaml | |
PRINT_PAYLOAD: true | |
deploy-prod: | |
name: Deploy to Production | |
needs: [deploy-dev] | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
environment: prod-fss | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: prod-fss | |
RESOURCE: nais/prod/nais.yaml,nais/grpc-svc.yaml | |
VARS: nais/vars.yaml | |
PRINT_PAYLOAD: true |