Bump io.mockk:mockk-jvm from 1.13.5 to 1.13.8 #1816
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-Deploy-Preprod | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
workflow_dispatch: | |
env: | |
IMAGE: ghcr.io/navikt/familie-oppdrag:${{ github.sha }} | |
jobs: | |
build: | |
name: Bygg app/image, push til github | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Bygg med maven + sonar | |
env: | |
SONAR_PROJECTKEY: ${{ secrets.SONAR_PROJECTKEY }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} | |
GITHUB_USERNAME: x-access-token | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# run: mvn -B --no-transfer-progress package verify sonar:sonar --settings .m2/maven-settings.xml --file pom.xml | |
run: mvn -B --no-transfer-progress package verify --settings .m2/maven-settings.xml --file pom.xml | |
- name: Bygg Docker image | |
run: | | |
docker build -t $IMAGE . | |
- name: Login to GitHub Container Registry | |
if: github.triggering_actor != 'dependabot[bot]' | |
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push Docker image | |
if: github.triggering_actor != 'dependabot[bot]' | |
run: docker push $IMAGE | |
deploy: | |
name: Deploy to FSS | |
if: github.triggering_actor != 'dependabot[bot]' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Deploy til dev-fss team namespace | |
uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-fss | |
RESOURCE: app-preprod.yaml |