Skip to content

Bump the dependencies group with 24 updates #223

Bump the dependencies group with 24 updates

Bump the dependencies group with 24 updates #223

Workflow file for this run

name: Deploy to dev
on:
push:
branches:
- '**'
- '!main'
jobs:
build:
permissions:
contents: "write"
id-token: "write"
name: Checkout code and create docker tag
runs-on: ubuntu-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout code
uses: actions/checkout@v4
- name: Gradle wrapper validation
uses: gradle/[email protected]
- name: Setup gradle dependency cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/.*gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run tests
run: |
./gradlew test
- name: Build jar
run: |
./gradlew shadowJar -x test
- name: docker-build-push
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: teamsykmelding
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
deploy-dev:
name: Deploy to dev
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to dev
uses: nais/deploy/actions/deploy@master
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: naiserator-dev.yaml
VAR: image=${{ needs.build.outputs.image }}