-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Update snapshot worker to use new build images process
- Loading branch information
Showing
1 changed file
with
37 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,37 +70,41 @@ jobs: | |
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 | ||
# build and publish images via composite action | ||
- name: Build and Publish Images | ||
uses: ./.github/actions/build-images | ||
with: | ||
version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }} | ||
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
GCR_JSON_KEY: ${{ secrets.GCR_JSON_KEY }} | ||
|
||
# zoo success | ||
- name: Notify Build Success Zoo Handler Controller | ||
uses: jvalkeal/[email protected] | ||
with: | ||
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }} | ||
dispatch-handler-client-payload-data: > | ||
{ | ||
"event": "build-succeed" | ||
} | ||
images: | ||
name: Build and Publish Images | ||
needs: [ build ] | ||
uses: ./.github/workflows/build-images.yml | ||
with: | ||
version: ${{ env.BUILD_ZOO_HANDLER_spring_cloud_dataflow_version }} | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
GCR_JSON_KEY: ${{ secrets.GCR_JSON_KEY }} | ||
|
||
# zoo failure | ||
- name: Notify Build Failure Zoo Handler Controller | ||
if: ${{ failure() }} | ||
uses: jvalkeal/[email protected] | ||
with: | ||
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }} | ||
dispatch-handler-client-payload-data: > | ||
{ | ||
"event": "build-failed", | ||
"message": "spring-cloud-dataflow failed" | ||
} | ||
# clean m2 cache | ||
- name: Clean cache | ||
run: | | ||
find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr | ||
wrap: | ||
needs: [ build, images ] | ||
steps: | ||
# zoo success | ||
- name: Notify Build Success Zoo Handler Controller | ||
uses: jvalkeal/[email protected] | ||
with: | ||
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }} | ||
dispatch-handler-client-payload-data: > | ||
{ | ||
"event": "build-succeed" | ||
} | ||
# zoo failure | ||
- name: Notify Build Failure Zoo Handler Controller | ||
if: ${{ failure() }} | ||
uses: jvalkeal/[email protected] | ||
with: | ||
dispatch-handler-token: ${{ secrets.SCDF_ACCESS_TOKEN }} | ||
dispatch-handler-client-payload-data: > | ||
{ | ||
"event": "build-failed", | ||
"message": "spring-cloud-dataflow failed" | ||
} | ||
# clean m2 cache | ||
- name: Clean cache | ||
run: | | ||
find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr |