a9cd7750f4
CI / unit-test (push) Has been cancelled
CI / detect-changes (push) Has been cancelled
CI / build (push) Has been cancelled
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / build-ui (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
UI v2 Integration CI / E2E (Integration) (push) Has been cancelled
UI v2 CI / Lint, Format & Test (push) Has been cancelled
UI v2 CI / E2E (Mocked) (push) Has been cancelled
114 lines
4.4 KiB
YAML
114 lines
4.4 KiB
YAML
name: Publish Conductor OSS toMaven Central
|
|
on:
|
|
release:
|
|
types:
|
|
- released
|
|
- prereleased
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version to publish (e.g., v1.0.0)'
|
|
required: true
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
name: Gradle Build and Publish
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Zulu JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '21'
|
|
- name: Cache Gradle packages
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Publish release
|
|
run: |
|
|
export VERSION="${{github.ref_name}}"
|
|
export PUBLISH_VERSION=`echo ${VERSION:1}`
|
|
echo Publishing version $PUBLISH_VERSION
|
|
./gradlew publish -PmavenCentral -Pversion=$PUBLISH_VERSION -Pusername=${{ secrets.SONATYPE_USERNAME }} -Ppassword=${{ secrets.SONATYPE_PASSWORD }}
|
|
env:
|
|
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
|
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
|
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
|
|
|
|
publish-docker:
|
|
runs-on: ubuntu-latest
|
|
name: Gradle Build and Publish to Container Registry
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Zulu JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '21'
|
|
|
|
- name: Login to Docker Hub Container Registry
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 'lts/*'
|
|
|
|
- name: Build ui-next and embed into server static resources
|
|
run: |
|
|
corepack enable
|
|
cd ui-next
|
|
pnpm install
|
|
NODE_OPTIONS=--max-old-space-size=4096 pnpm build
|
|
cd ..
|
|
mkdir -p server/src/main/resources/static
|
|
rm -rf server/src/main/resources/static/*
|
|
cp -r ui-next/dist/. server/src/main/resources/static/
|
|
|
|
- name: Build Server JAR
|
|
run: |
|
|
export VERSION="${{github.ref_name}}"
|
|
export PUBLISH_VERSION=`echo ${VERSION:1}`
|
|
echo "RELEASE_VERSION=$PUBLISH_VERSION" >> $GITHUB_ENV
|
|
echo Publishing version $PUBLISH_VERSION
|
|
./gradlew :conductor-server:build -x test -x spotlessCheck -x shadowJar -x :conductor-os-persistence-v3:build \
|
|
-Pversion=$PUBLISH_VERSION
|
|
|
|
- name: Stage artifacts for Docker build
|
|
run: |
|
|
mkdir -p docker/server/libs
|
|
cp server/build/libs/*boot*.jar docker/server/libs/conductor-server.jar
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- name: Build and push Server
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
context: .
|
|
file: docker/server/Dockerfile
|
|
platforms: linux/arm64,linux/amd64
|
|
push: true
|
|
build-args: |
|
|
PREBUILT=true
|
|
tags: |
|
|
conductoross/conductor:${{ env.RELEASE_VERSION }}
|
|
orkesio/orkes-conductor-community-standalone:${{ env.RELEASE_VERSION }}
|
|
orkesio/orkes-conductor-community:${{ env.RELEASE_VERSION }}
|
|
${{ (github.event_name == 'release' && !github.event.release.prerelease && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha')) && 'conductoross/conductor:latest' || '' }}
|
|
${{ (github.event_name == 'release' && !github.event.release.prerelease && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha')) && 'orkesio/orkes-conductor-community-standalone:latest' || '' }}
|
|
${{ (github.event_name == 'release' && !github.event.release.prerelease && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha')) && 'orkesio/orkes-conductor-community:latest' || '' }} |