Add in delta support to Java PlanRun, update with more documentation … #95
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: Build docker images and OS installations | |
on: | |
push: | |
tags: | |
"*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- name: Build and push images | |
run: bash docker-action.sh | |
env: | |
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} | |
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} | |
- name: Build jpackage jar | |
run: JPACKAGE_BUILD=true ./gradlew clean :api:shadowJar :app:shadowJar | |
- name: Upload jpackage jar | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jars | |
path: "app/build/libs/*.jar" | |
overwrite: true | |
osx: | |
needs: build | |
runs-on: [macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set version | |
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
java-package: jdk | |
architecture: x64 | |
distribution: oracle | |
- name: Download fat jar | |
uses: actions/download-artifact@v4 | |
with: | |
name: jars | |
path: app/build/libs/ | |
- name: Package jar as dmg installer | |
run: 'jpackage --main-jar app-${APP_VERSION}-all.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-mac.cfg"' | |
- name: Upload dmg | |
uses: actions/upload-artifact@v4 | |
with: | |
name: data-caterer-mac | |
path: "DataCaterer-1.0.0.dmg" | |
overwrite: true | |
windows: | |
needs: build | |
runs-on: [windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set version | |
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $env:GITHUB_ENV | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
java-package: jdk | |
architecture: x64 | |
distribution: oracle | |
- name: Download fat jar | |
uses: actions/download-artifact@v4 | |
with: | |
name: jars | |
path: app/build/libs/ | |
- name: Package jar as exe | |
run: 'jpackage --main-jar app-$env:APP_VERSION-all.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-windows.cfg"' | |
- name: Upload installer | |
uses: actions/upload-artifact@v4 | |
with: | |
name: data-caterer-windows | |
path: "DataCaterer-1.0.0.exe" | |
overwrite: true | |
linux: | |
needs: build | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set version | |
run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
java-package: jdk | |
architecture: x64 | |
distribution: oracle | |
- name: Download fat jar | |
uses: actions/download-artifact@v4 | |
with: | |
name: jars | |
path: app/build/libs/ | |
- name: Package jar as debian package | |
run: 'jpackage --main-jar app-${APP_VERSION}-all.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-linux.cfg"' | |
- name: List directory | |
run: ls -lart | |
- name: Upload deb | |
uses: actions/upload-artifact@v4 | |
with: | |
name: data-caterer-linux | |
path: "datacaterer_1.0.0_amd64.deb" | |
overwrite: true |