1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00

Use Multi-arch gradle image for ppc64le, s390x gradle tasks

This commit is contained in:
manojbison 2022-06-17 16:44:07 +05:30 committed by tekton-robot
parent 1151ae52cf
commit 8c5bb21350
2 changed files with 6 additions and 0 deletions

View File

@ -34,5 +34,8 @@ find task -name *registry*.yaml | xargs -I{} yq eval '(..|select(.kind?=="Deploy
echo "Change GOARCH parameter value"
find task/golang*/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "GOARCH","value": env(GOARCH)}' -i {}
echo "Add extra GRADLE_IMAGE value"
find task/gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "GRADLE_IMAGE","value": env(BUILDER_IMAGE)}' -i {}
echo "Add extra BUILDER_IMAGE parameter"
find task/jib-gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "BUILDER_IMAGE","value": env(BUILDER_IMAGE)}' -i {}

View File

@ -34,5 +34,8 @@ find task -name *registry*.yaml | xargs -I{} yq eval '(..|select(.kind?=="Deploy
echo "Change GOARCH parameter value"
find task/golang*/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "GOARCH","value": env(GOARCH)}' -i {}
echo "Add extra GRADLE_IMAGE value"
find task/gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "GRADLE_IMAGE","value": env(BUILDER_IMAGE)}' -i {}
echo "Add extra BUILDER_IMAGE parameter"
find task/jib-gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "BUILDER_IMAGE","value": env(BUILDER_IMAGE)}' -i {}