Skip to content

docs: add Docker installation #18

docs: add Docker installation

docs: add Docker installation #18

name: Release Please
on:
push:
branches: [ main ]
jobs:
#
# Create/update a PR for the next release, bumping the version (in version.txt)
# depending on the conventional commits since the last release.
#
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.rp.outputs.release_created }}
tag: ${{ steps.rp.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: rp
with:
release-type: simple
changelog-types: '[{"type":"feat","section":"🚀 Features","hidden":false},{"type":"fix","section":"🐛 Bug Fixes","hidden":false},{"type":"docs","section":"💬 Documentation","hidden":false},{"type":"build","section":"🔧 Build","hidden":false}, {"type":"ci","section":"⟲ CI","hidden":false}]'
#
# IF a release was made, attach the artifacts to the release
#
publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup gradle
uses: ./.github/actions/gradlew
- name: Build release jars
run: |
./gradlew -Dsnapshot=false jar
./gradlew -Dsnapshot=false jar -PnoPlaywright
./gradlew exec-jar
- name: Attach assets to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.release-please.outputs.tag }}
files: |
build/bin/*.jar
- name: Upload Jar artifacts
uses: actions/upload-artifact@v4
with:
name: jars
# Use a wildcard to keep the structure
path: ./build*/libs/*.jar
retention-days: 30
publish-docker-image:
needs: [ publish, release-please ]
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/reusable-docker.yaml
secrets: inherit # pass all secrets to the called workflow
with:
artifact: jars
publish: true
publish_dockerhub: true
version: ${{ needs.release-please.outputs.tag }}