Merge pull request #17 from linjeforeningen-delta/renovate/gradle-8.x #28
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
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Execute Gradle compile | |
run: ./gradlew compileKotlin | |
- name: Execute Gradle test | |
run: ./gradlew test | |
- name: Build docker image | |
run: | | |
./gradlew jib \ | |
-Djib.to.image=ghcr.io/${{ github.repository }}:latest \ | |
-Djib.to.auth.username=${{ github.actor }} \ | |
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} |