Skip to content

Commit

Permalink
[CI] Remove postfix and prerelease properties
Browse files Browse the repository at this point in the history
 [skip ci]
  • Loading branch information
corneil committed Aug 17, 2023
1 parent 342228c commit b897ee0
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 46 deletions.
15 changes: 3 additions & 12 deletions .github/actions/publish-bundle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ inputs:
version:
description: semver version
required: true
prerelease:
description: semver version prerelease
required: false


runs:
using: "composite"
steps:
Expand All @@ -27,15 +24,9 @@ runs:
BUNDLE_PATH: ${{ inputs.path }}
REPOSITORY: ${{ inputs.repository }}
VERSION: ${{ inputs.version }}
PRERELEASE: ${{ inputs.prerelease }}
shell: bash
run: |
imgpkg push --bundle $REPOSITORY:$VERSION-RANDOM.$RTAG --file $BUNDLE_PATH
docker pull $REPOSITORY:$VERSION-RANDOM.$RTAG
if [[ "$VERSION" = *"SNAPSHOT"* ]]; then
POSTFIX=$VERSION
else
POSTFIX=$VERSION${PRERELEASE:+"-$PRERELEASE"}
fi
docker tag $REPOSITORY:$VERSION-RANDOM.$RTAG $REPOSITORY:$POSTFIX
docker push $REPOSITORY:$POSTFIX
docker tag $REPOSITORY:$VERSION-RANDOM.$RTAG $REPOSITORY:$VERSION
docker push $REPOSITORY:$VERSION
2 changes: 0 additions & 2 deletions .github/workflows/build-snapshot-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ jobs:
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildname=spring-cloud-dataflow-main >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildnumber=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_skipper_version=$(mvn help:evaluate -Dexpression=spring-cloud-skipper.version -pl spring-cloud-dataflow-parent -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version_nopostfix=$(echo '${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}' | mvn build-helper:parse-version help:evaluate -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_prerelease=$(echo '${parsedVersion.qualifier}' | mvn build-helper:parse-version help:evaluate -q -DforceStdout) >> $GITHUB_ENV
# build and publish images via composite action
- name: Build and Publish Images
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/carvel-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@ jobs:
uses: jvalkeal/[email protected]
with:
dispatch-handler-extract-context-properties: true
ensure-env: |
BUILD_ZOO_HANDLER_spring_cloud_dataflow_version
BUILD_ZOO_HANDLER_spring_cloud_dataflow_version_nopostfix
BUILD_ZOO_HANDLER_spring_cloud_dataflow_prerelease
ensure-env: BUILD_ZOO_HANDLER_spring_cloud_dataflow_version
outputs:
dataflow-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
dataflow-version-no-postfix: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version_nopostfix }}
skipper-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
server-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
ctr-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
prerelease: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_prerelease }}
publish:
name: Publish
needs:
Expand All @@ -39,14 +34,12 @@ jobs:
with:
package-name: 'scdf'
package-version: ${{ needs.prepare.outputs.server-version }}
dataflow-version-no-postfix: ${{ needs.prepare.outputs.dataflow-version-no-postfix }}
package-bundle: 'springcloud/scdf-oss-package'
repository-bundle: 'springcloud/scdf-oss-repo'
dataflow-version: ${{ needs.prepare.outputs.dataflow-version }}
server-version: ${{ needs.prepare.outputs.server-version }}
ctr-version: ${{ needs.prepare.outputs.dataflow-version }}
skipper-version: ${{ needs.prepare.outputs.skipper-version }}
prerelease: ${{ needs.prepare.outputs.prerelease }}
server-repository: 'springcloud/spring-cloud-dataflow-server'
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci-carvel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
source $ROOT/.github/workflows/export-app-versions.sh
echo DATAFLOW_VERSION=$DATAFLOW_VERSION >> $GITHUB_ENV
echo SKIPPER_VERSION=$SKIPPER_VERSION >> $GITHUB_ENV
echo DATAFLOW_VERSION_NOPOSTFIX=$DATAFLOW_VERSION_NOPOSTFIX >> $GITHUB_ENV
if [ "${{ inputs.package_version }}" != "" ]; then
echo PACKAGE_VERSION=${{ inputs.package_version }} >> $GITHUB_ENV
else
Expand All @@ -70,7 +69,6 @@ jobs:
outputs:
dataflow-version: ${{ env.DATAFLOW_VERSION }}
skipper-version: ${{ env.SKIPPER_VERSION }}
dataflow-version-no-postfix: ${{ env.DATAFLOW_VERSION_NOPOSTFIX }}
package-version: ${{ env.PACKAGE_VERSION }}
publish:
name: Publish
Expand All @@ -84,11 +82,9 @@ jobs:
package-bundle: 'springcloud/scdf-oss-package'
repository-bundle: 'springcloud/scdf-oss-repo'
dataflow-version: ${{ needs.prepare.outputs.dataflow-version }}
dataflow-version-no-postfix: ${{ needs.prepare.outputs.dataflow-version-no-postfix }}
server-version: ${{ needs.prepare.outputs.dataflow-version }}
ctr-version: ${{ needs.prepare.outputs.dataflow-version }}
skipper-version: ${{ needs.prepare.outputs.skipper-version }}
prerelease: 'SNAPSHOT'
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
10 changes: 0 additions & 10 deletions .github/workflows/common-carvel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ on:
type: string
description: 'Server Version'
required: true
dataflow-version-no-postfix:
type: string
description: 'Spring Cloud Data Flow Container Release Version'
required: true
skipper-version:
type: string
description: 'Spring Cloud Skipper Container Version'
Expand All @@ -43,10 +39,6 @@ on:
type: string
description: 'Docker repo for Data Flow Server'
required: true
prerelease:
type: string
description: 'Empty for release'
required: false
secrets:
DOCKERHUB_USERNAME:
DOCKERHUB_TOKEN:
Expand Down Expand Up @@ -92,7 +84,6 @@ jobs:
path: '${{ steps.build-package-bundle.outputs.bundle-path }}'
repository: ${{ inputs.package-bundle }}
version: ${{ inputs.package-version }}
prerelease: ${{ inputs.prerelease && inputs.prerelease || '' }}

# Builds a repository bundle
- name: Build Repository Bundle
Expand All @@ -112,4 +103,3 @@ jobs:
path: '${{ steps.build-repository-bundle.outputs.bundle-path }}'
repository: ${{ inputs.repository-bundle }}
version: ${{ inputs.package-version }}
prerelease: ${{ inputs.prerelease && inputs.prerelease || '' }}
8 changes: 0 additions & 8 deletions .github/workflows/export-app-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,5 @@ if ((RC!=0)); then
exit $RC
fi
echo "SKIPPER_VERSION=$SKIPPER_VERSION"
DATAFLOW_VERSION_NOPOSTFIX=$(echo '${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}' | mvn build-helper:parse-version help:evaluate -q -DforceStdout)
RC=$?
if ((RC!=0)); then
echo "DATAFLOW_VERSION_NOPOSTFIX=$DATAFLOW_VERSION_NOPOSTFIX"
exit $RC
fi
echo "DATAFLOW_VERSION_NOPOSTFIX=$DATAFLOW_VERSION_NOPOSTFIX"
export DATAFLOW_VERSION
export SKIPPER_VERSION
export DATAFLOW_VERSION_NOPOSTFIX
2 changes: 0 additions & 2 deletions .github/workflows/milestone-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ jobs:
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version=$(mvn -gs .github/settings.xml -Pstagingmilestone help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildname=spring-cloud-dataflow-main-milestone >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_buildnumber=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version_nopostfix=$(echo '${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}' | mvn -gs .github/settings.xml -Pstagingmilestone build-helper:parse-version help:evaluate -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_prerelease=$(echo '${parsedVersion.qualifier}' | mvn -gs .github/settings.xml -Pstagingmilestone build-helper:parse-version help:evaluate -pl spring-cloud-dataflow-parent -q -DforceStdout) >> $GITHUB_ENV
# zoo tag
- name: Tag Release
uses: jvalkeal/[email protected]
Expand Down

0 comments on commit b897ee0

Please sign in to comment.