Skip to content

Commit

Permalink
[CI] Fix release-worker.yml [skip ci]
Browse files Browse the repository at this point in the history
* Remove old repos
  • Loading branch information
onobc committed Sep 14, 2023
1 parent 598427a commit fa835fa
Showing 1 changed file with 3 additions and 59 deletions.
62 changes: 3 additions & 59 deletions .github/workflows/release-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ jobs:
with:
dispatch-handler-extract-context-properties: true
ensure-env: |
BUILD_ZOO_HANDLER_spring_cloud_dataflow_build_version
BUILD_ZOO_HANDLER_spring_cloud_dataflow_common_version
BUILD_ZOO_HANDLER_spring_cloud_deployer_version
BUILD_ZOO_HANDLER_spring_cloud_deployer_local_version
BUILD_ZOO_HANDLER_spring_cloud_deployer_cloudfoundry_version
BUILD_ZOO_HANDLER_spring_cloud_deployer_kubernetes_version
BUILD_ZOO_HANDLER_spring_cloud_common_security_config_version
BUILD_ZOO_HANDLER_spring_cloud_skipper_version
BUILD_ZOO_HANDLER_spring_cloud_dataflow_ui_version
# build and publish to configured target
Expand All @@ -77,61 +70,13 @@ jobs:
-DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}' \
-B
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
jfrog rt mvn versions:update-parent \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-DparentVersion='['${BUILD_ZOO_HANDLER_spring_cloud_dataflow_build_version}']' \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-dataflow-common.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_common_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-deployer.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_deployer_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-deployer-local.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_deployer_local_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-deployer-cloudfoundry.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_deployer_cloudfoundry_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-deployer-kubernetes.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_deployer_kubernetes_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-common-security-config.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_common_security_config_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
-DgenerateBackupPoms=false \
-Dproperty=spring-cloud-skipper.version \
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_skipper_version} \
-B
jfrog rt mvn versions:set-property \
-gs .github/settings.xml \
-Pstagingrelease \
Expand All @@ -140,13 +85,12 @@ jobs:
-DnewVersion=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_ui_version} \
-B
jfrog rt build-clean
mvn clean
./spring-cloud-dataflow-package/set-package-version.sh
jfrog rt mvn -gs .github/settings.xml -Pstagingrelease,full,deploymentfiles -B install -DskipTests
./spring-cloud-dataflow-package/set-package-version.sh
jfrog rt mvn -gs .github/settings.xml -Pstagingrelease,full,deploymentfiles -B install -DskipTests
jfrog rt build-publish
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version=$(mvn -gs .github/settings.xml -Pstagingrelease help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildname=spring-cloud-dataflow-main-release >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildnumber=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
# zoo tag
- name: Tag Release
uses: jvalkeal/build-zoo-handler@v0.0.4
Expand Down

0 comments on commit fa835fa

Please sign in to comment.