Skip to content

chore: bump everything; java 21, ktor 2, distroless #39

chore: bump everything; java 21, ktor 2, distroless

chore: bump everything; java 21, ktor 2, distroless #39

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@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # ratchet:actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle wrapper cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # ratchet:actions/cache@v3
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@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # ratchet:gradle/wrapper-validation-action@v1
- name: Build with Gradle
run: ./gradlew clean wonderwalled-${{ matrix.module }}:build wonderwalled-${{ matrix.module }}:shadowJar
- uses: nais/platform-build-push-sign@c59f563da57e27f2f30defca0c20f51f629ff2cf # ratchet:nais/platform-build-push-sign@main
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@6b2377513f382f7ad0db356347ca2a7041ccfcea # ratchet:nais/deploy/actions/deploy@v1
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 }}