This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Java17 uplift #49
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: PR build | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build-managers: | |
name: Build Managers source code and Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'semeru' | |
- name: Print githash | |
run: | | |
echo $GITHUB_SHA > ./managers.githash | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: 8.9 | |
- name: Build Managers source code | |
run: | | |
gradle -b galasa-managers-parent/build.gradle check publish \ | |
-Dorg.gradle.jvmargs=-Xmx4096M \ | |
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/extensions \ | |
-PcentralMaven=https://repo.maven.apache.org/maven2/ \ | |
-PtargetMaven=${{github.workspace}}/repo | |
- name: Build Managers image for testing | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: dockerfiles/dockerfile | |
load: true | |
tags: managers:test | |
build-args: | | |
dockerRepository=ghcr.io | |
tag=main | |