Skip to content

Version 0.25.0

Version 0.25.0 #30

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v2.1.3
jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install GraphViz
run: sudo apt-get install graphviz -y
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build Java server
run: make buildServer
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Generate checksums
run: |
cp kroki-server.jar kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar
sha512sum kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar > kroki-standalone-server-${{ env.RELEASE_VERSION }}.sha512sum.txt
md5sum kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar > kroki-standalone-server-${{ env.RELEASE_VERSION }}.md5sum.txt
working-directory: server/target
- name: Create release
run: |
gh release create "${{ env.RELEASE_VERSION }}"
gh release upload "${{ env.RELEASE_VERSION }}" ./server/target/kroki-standalone-server-* --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_dockerhub:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install GraphViz
run: sudo apt-get install graphviz -y
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build Java server
run: make buildServer
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config: .github/buildkitd.toml
- name: Login to Docker Hub
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker images
run: RELEASE_VERSION=${GITHUB_REF#refs/*/v*} make publishDockerImages