Skip to content

chore(deps): bump gradle, kotlin and deps #47

chore(deps): bump gradle, kotlin and deps

chore(deps): bump gradle, kotlin and deps #47

Workflow file for this run

name: main
on:
push:
branches:
- master
jobs:
build:
name: Build and push
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
module: [azure, idporten]
steps:
- name: Checkout latest code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # ratchet:actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # ratchet:actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle wrapper cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # ratchet:actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Verify Gradle wrapper checksum
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # ratchet:gradle/wrapper-validation-action@v3
- name: Build with Gradle
run: ./gradlew clean wonderwalled-${{ matrix.module }}:build wonderwalled-${{ matrix.module }}:shadowJar
- uses: nais/platform-build-push-sign@main # ratchet:exclude
id: build_push_sign
with:
name: wonderwalled-${{ matrix.module }}
context: ./wonderwalled-${{ matrix.module }}
dockerfile: ./wonderwalled-${{ matrix.module }}/Dockerfile
google_service_account: gh-wonderwalled
multi-platform: true
push: true
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
- uses: nais/deploy/actions/deploy@v2 # ratchet:exclude
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/${{ matrix.module }}.yaml,.nais/${{ matrix.module }}-token-generator.yaml
IMAGE: ${{ steps.build_push_sign.outputs.tag }}