Skip to content

Commit

Permalink
Move --publishImage command line option to bootImage task
Browse files Browse the repository at this point in the history
The build was failing with unknown command line option.
  • Loading branch information
shakuzen committed Feb 18, 2022
1 parent c864ed8 commit e58fca3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ if [ $CIRCLE_PR_NUMBER ]; then
echo -e "Not attempting to publish"
elif [ -z $CIRCLE_TAG ]; then
echo -e "Publishing Snapshot => Branch ['$CIRCLE_BRANCH']"
./gradlew -Prelease.stage=SNAPSHOT snapshot bootBuildImage publishNebulaPublicationToSnapshotRepository --publishImage $SWITCHES
./gradlew -Prelease.stage=SNAPSHOT snapshot bootBuildImage --publishImage publishNebulaPublicationToSnapshotRepository $SWITCHES
elif [ $CIRCLE_TAG ]; then
echo -e "Publishing Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']"
case "$CIRCLE_TAG" in
*-M*)
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate bootBuildImage publishNebulaPublicationToMilestoneRepository --publishImage $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate bootBuildImage --publishImage publishNebulaPublicationToMilestoneRepository $SWITCHES
;;
*-RC*)
# -Prelease.stage=milestone instead of rc (should be rc), probably related to this bug: https://github.com/nebula-plugins/nebula-release-plugin/issues/213
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate bootBuildImage publishNebulaPublicationToMilestoneRepository --publishImage $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate bootBuildImage --publishImage publishNebulaPublicationToMilestoneRepository $SWITCHES
;;
*)
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=final final bootBuildImage publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository --publishImage $SWITCHES
Expand Down

0 comments on commit e58fca3

Please sign in to comment.