Skip to content

Commit

Permalink
Merge branch 'main' into feature/unexpectedtaskexecutionexception
Browse files Browse the repository at this point in the history
  • Loading branch information
klopfdreh authored Aug 29, 2023
2 parents 7779811 + ffda245 commit 4defa79
Show file tree
Hide file tree
Showing 497 changed files with 18,600 additions and 9,136 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
8 changes: 3 additions & 5 deletions .github/workflows/build-snapshot-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ jobs:
# build and publish to configured target
- name: Build and Publish
run: |
jfrog rt mvn clean install \
-Pfull \
-B $MAVEN_THREADS
mvn clean
./spring-cloud-dataflow-package/set-package-version.sh
jfrog rt mvn install -Pfull -B $MAVEN_THREADS
jfrog rt build-publish
echo BUILD_ZOO_HANDLER_spring_cloud_dataflow_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
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
20 changes: 7 additions & 13 deletions .github/workflows/carvel-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +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
BUILD_ZOO_HANDLER_spring_cloud_skipper_version
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_skipper_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 }}'
dataflow-version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }}
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 }}
publish:
name: Publish
needs:
Expand All @@ -40,21 +34,21 @@ 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 }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
finalize:
name: Finalize
runs-on: ubuntu-latest
needs:
- publish
steps:
# zoo success
- name: Notify Build Success Zoo Handler Controller
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-carvel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,16 @@ 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
echo PACKAGE_VERSION=$DATAFLOW_VERSION >> $GITHUB_ENV
fi
popd
outputs:
dataflow-version: '${{ env.DATAFLOW_VERSION }}'
skipper-version: '${{ env.SKIPPER_VERSION }}'
dataflow-version-no-postfix: '${{ env.DATAFLOW_VERSION_NOPOSTFIX }}'
package-version: '${{ env.PACKAGE_VERSION }}'
dataflow-version: ${{ env.DATAFLOW_VERSION }}
skipper-version: ${{ env.SKIPPER_VERSION }}
package-version: ${{ env.PACKAGE_VERSION }}
publish:
name: Publish
needs:
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# build
- name: Build
run: |
mvn -B -s .github/settings.xml $MAVEN_THREADS clean package
mvn -B -s .github/settings.xml $MAVEN_THREADS clean install
# clean m2 cache
- name: Clean cache
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
# build and publish
- name: Build and Publish
run: |
mvn clean
jfrog rt mvn install -Pfull -B $MAVEN_THREADS
mvn clean
./spring-cloud-dataflow-package/set-package-version.sh
jfrog rt mvn install -Pfull,asciidoctordocs,restdocs -B
jfrog rt build-publish
- name: Capture Test Results
if: ${{ always() }}
Expand Down
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
Loading

0 comments on commit 4defa79

Please sign in to comment.