Skip to content

Fix appnavn for ords-proxy i q2 (#56) #94

Fix appnavn for ords-proxy i q2 (#56)

Fix appnavn for ords-proxy i q2 (#56) #94

Workflow file for this run

name: Deploy application
on:
push:
branches:
- main
env:
IMAGE_TAG: ${{ github.sha }}
IMAGE: ghcr.io/${{ github.repository }}/aktivitet-arena-acl
PRINT_PAYLOAD: true
jobs:
test-build-and-push:
name: Test, build and push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build maven artifacts
run: mvn -B package
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ env.IMAGE }}:${{ env.IMAGE_TAG }}
deploy-dev:
name: Deploy to dev
needs: test-build-and-push
uses: ./.github/workflows/naisdeploy.yaml
with:
environment: dev
secrets:
nais-deploy-secret: ${{ secrets.NAIS_DEPLOY_APIKEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-prod:
name: Deploy to prod
needs: test-build-and-push
uses: ./.github/workflows/naisdeploy.yaml
with:
environment: prod
secrets:
nais-deploy-secret: ${{ secrets.NAIS_DEPLOY_APIKEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}