From beafa3fe67f63c1da62946f993109d428119a5ae Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Thu, 21 Oct 2021 08:41:09 +0200 Subject: [PATCH 1/2] Use Github Actions for CI --- .github/workflows/maven-build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/maven-build.yml diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 000000000..b2099fb2a --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,26 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml From f238537e3aee6379fdb14b4b8d74586619fbc80c Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Fri, 22 Dec 2023 19:56:22 +0100 Subject: [PATCH 2/2] Fix Docker build by adding the --load options (Shortcut for --output=type=docker) --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index d4f49b002..0a0ad34e6 100644 --- a/pom.xml +++ b/pom.xml @@ -148,6 +148,7 @@ build -f Dockerfile + --load --build-arg ARTIFACT_NAME=${project.build.finalName} --build-arg