Skip to content

Commit

Permalink
[no ci] add switch for maven in release gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Jun 6, 2024
1 parent a6a5da8 commit 2245a41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ on:
workflow_dispatch:
inputs:
version:
description: maven and docker release version
required: true
default: 'X.X.X.RCX'
docker:
description: push to docker
required: true
type: choice
options:
- 'enabled'
- 'disabled'
maven:
description: push to maven central
required: true
type: choice
options:
- 'enabled'
- 'disabled'

jobs:
build:
Expand Down Expand Up @@ -50,6 +59,7 @@ jobs:
docker buildx build --push --platform linux/amd64 --cache-from=type=local,src=./target/docker -t karate-chrome -t karatelabs/karate-chrome:latest -t karatelabs/karate-chrome:${{ github.event.inputs.version }} karate-docker/karate-chrome
docker buildx build --push --platform linux/amd64,linux/arm64 --cache-from=type=local,src=./target/docker -t karate-chromium -t karatelabs/karate-chromium:latest -t karatelabs/karate-chromium:${{ github.event.inputs.version }} karate-docker/karate-chromium
- name: maven deploy to central
if: ( github.event.inputs.maven == 'enabled' )
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit 2245a41

Please sign in to comment.