Skip to content

Publish

Publish #44

Workflow file for this run

name: Publish
on:
release:
types: [ published ]
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
distribution: 'temurin'
java-version: '11'
- name: Publish
env:
githubToken: ${{ secrets.GITHUB_TOKEN }}
GRGIT_USER: ${{ secrets.JENKINS_GITHUB_TOKEN }}
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_TOKEN }}
run: ./gradlew githubRelease gitPublishPush pushOciImage --registry dockerHub --tag . --tag latest # . is a placeholder for the default tag