From 993126dc8864e4339855ba6ca9bd7996bc16dd53 Mon Sep 17 00:00:00 2001 From: Mykola Marusenko Date: Thu, 7 Nov 2024 13:37:46 +0200 Subject: [PATCH] feat: Implement parameter to set image repository (#348) --- charts/pipelines-library/README.md | 3 ++- charts/pipelines-library/templates/_helpers.tpl | 7 +++++++ .../templates/pipelines/_common_dotnet.yaml | 4 ++-- .../templates/pipelines/_common_js_npm.yaml | 2 +- .../autotests/gradle/bitbucket-build-default.yaml | 13 +++++++++++-- .../autotests/gradle/bitbucket-build-edp.yaml | 13 +++++++++++-- .../autotests/gradle/bitbucket-review.yaml | 13 +++++++++++-- .../autotests/gradle/gerrit-build-default.yaml | 13 +++++++++++-- .../autotests/gradle/gerrit-build-edp.yaml | 13 +++++++++++-- .../pipelines/autotests/gradle/gerrit-review.yaml | 13 +++++++++++-- .../autotests/gradle/github-build-default.yaml | 13 +++++++++++-- .../autotests/gradle/github-build-edp.yaml | 13 +++++++++++-- .../pipelines/autotests/gradle/github-review.yaml | 13 +++++++++++-- .../autotests/gradle/gitlab-build-default.yaml | 13 +++++++++++-- .../autotests/gradle/gitlab-build-edp.yaml | 13 +++++++++++-- .../pipelines/autotests/gradle/gitlab-review.yaml | 13 +++++++++++-- .../autotests/maven/bitbucket-build-default.yaml | 7 ++++++- .../autotests/maven/bitbucket-build-edp.yaml | 7 ++++++- .../pipelines/autotests/maven/bitbucket-review.yaml | 7 ++++++- .../autotests/maven/gerrit-build-default.yaml | 7 ++++++- .../pipelines/autotests/maven/gerrit-build-edp.yaml | 7 ++++++- .../pipelines/autotests/maven/gerrit-review.yaml | 7 ++++++- .../autotests/maven/github-build-default.yaml | 7 ++++++- .../pipelines/autotests/maven/github-build-edp.yaml | 7 ++++++- .../pipelines/autotests/maven/github-review.yaml | 7 ++++++- .../autotests/maven/gitlab-build-default.yaml | 7 ++++++- .../pipelines/autotests/maven/gitlab-build-edp.yaml | 7 ++++++- .../pipelines/autotests/maven/gitlab-review.yaml | 7 ++++++- .../pipelines/c/cmake/bitbucket-build-default.yaml | 2 +- .../pipelines/c/cmake/bitbucket-build-edp.yaml | 3 ++- .../pipelines/c/cmake/bitbucket-review.yaml | 3 ++- .../pipelines/c/cmake/gerrit-build-default.yaml | 3 ++- .../pipelines/c/cmake/gerrit-build-edp.yaml | 3 ++- .../templates/pipelines/c/cmake/gerrit-review.yaml | 3 ++- .../pipelines/c/cmake/github-build-default.yaml | 3 ++- .../pipelines/c/cmake/github-build-edp.yaml | 3 ++- .../templates/pipelines/c/cmake/github-review.yaml | 3 ++- .../pipelines/c/cmake/gitlab-build-default.yaml | 3 ++- .../pipelines/c/cmake/gitlab-build-edp.yaml | 3 ++- .../templates/pipelines/c/cmake/gitlab-review.yaml | 3 ++- .../pipelines/c/make/bitbucket-build-default.yaml | 3 ++- .../pipelines/c/make/bitbucket-build-edp.yaml | 3 ++- .../pipelines/c/make/bitbucket-review.yaml | 3 ++- .../pipelines/c/make/gerrit-build-default.yaml | 3 ++- .../pipelines/c/make/gerrit-build-edp.yaml | 3 ++- .../templates/pipelines/c/make/gerrit-review.yaml | 3 ++- .../pipelines/c/make/github-build-default.yaml | 3 ++- .../pipelines/c/make/github-build-edp.yaml | 3 ++- .../templates/pipelines/c/make/github-review.yaml | 3 ++- .../pipelines/c/make/gitlab-build-default.yaml | 3 ++- .../pipelines/c/make/gitlab-build-edp.yaml | 3 ++- .../templates/pipelines/c/make/gitlab-review.yaml | 3 ++- .../templates/pipelines/cd/deploy-ansible-awx.yaml | 5 +++-- .../templates/pipelines/cd/deploy-ansible.yaml | 5 +++-- .../templates/pipelines/cd/deploy-with-approve.yaml | 3 ++- .../pipelines/cd/deploy-with-autotests.yaml | 5 +++-- .../templates/pipelines/cd/deploy.yaml | 5 +++-- .../docker/kaniko/gerrit-build-default.yaml | 3 ++- .../pipelines/go/bitbucket-build-default.yaml | 3 ++- .../templates/pipelines/go/bitbucket-build-edp.yaml | 3 ++- .../templates/pipelines/go/bitbucket-review.yaml | 3 ++- .../pipelines/go/gerrit-build-default.yaml | 3 ++- .../templates/pipelines/go/gerrit-build-edp.yaml | 3 ++- .../templates/pipelines/go/gerrit-review.yaml | 3 ++- .../pipelines/go/github-build-default.yaml | 3 ++- .../templates/pipelines/go/github-build-edp.yaml | 3 ++- .../templates/pipelines/go/github-review.yaml | 3 ++- .../pipelines/go/gitlab-build-default.yaml | 3 ++- .../templates/pipelines/go/gitlab-build-edp.yaml | 3 ++- .../templates/pipelines/go/gitlab-review.yaml | 3 ++- .../groovy/bitbucket-build-lib-default.yaml | 3 ++- .../pipelines/groovy/bitbucket-build-lib-edp.yaml | 3 ++- .../pipelines/groovy/bitbucket-review-lib.yaml | 3 ++- .../pipelines/groovy/gerrit-build-lib-default.yaml | 3 ++- .../pipelines/groovy/gerrit-build-lib-edp.yaml | 3 ++- .../pipelines/groovy/gerrit-review-lib.yaml | 3 ++- .../pipelines/groovy/github-build-lib-default.yaml | 3 ++- .../pipelines/groovy/github-build-lib-edp.yaml | 3 ++- .../pipelines/groovy/github-review-lib.yaml | 3 ++- .../pipelines/groovy/gitlab-build-lib-default.yaml | 3 ++- .../pipelines/groovy/gitlab-build-lib-edp.yaml | 3 ++- .../pipelines/groovy/gitlab-review-lib.yaml | 3 ++- .../java/gradle/bitbucket-build-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/bitbucket-build-edp.yaml | 13 +++++++++++-- .../java/gradle/bitbucket-build-lib-default.yaml | 13 +++++++++++-- .../java/gradle/bitbucket-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/gradle/bitbucket-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/gradle/bitbucket-review.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gerrit-build-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gerrit-build-edp.yaml | 13 +++++++++++-- .../java/gradle/gerrit-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gerrit-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gerrit-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gerrit-review.yaml | 13 +++++++++++-- .../pipelines/java/gradle/github-build-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/github-build-edp.yaml | 13 +++++++++++-- .../java/gradle/github-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/github-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/gradle/github-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/gradle/github-review.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gitlab-build-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gitlab-build-edp.yaml | 13 +++++++++++-- .../java/gradle/gitlab-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gitlab-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gitlab-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/gradle/gitlab-review.yaml | 13 +++++++++++-- .../java/maven/bitbucket-build-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/bitbucket-build-edp.yaml | 13 +++++++++++-- .../java/maven/bitbucket-build-lib-default.yaml | 13 +++++++++++-- .../java/maven/bitbucket-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/maven/bitbucket-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/maven/bitbucket-review.yaml | 13 +++++++++++-- .../pipelines/java/maven/gerrit-build-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/gerrit-build-edp.yaml | 13 +++++++++++-- .../java/maven/gerrit-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/gerrit-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/maven/gerrit-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/maven/gerrit-review.yaml | 13 +++++++++++-- .../pipelines/java/maven/github-build-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/github-build-edp.yaml | 13 +++++++++++-- .../java/maven/github-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/github-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/maven/github-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/maven/github-review.yaml | 13 +++++++++++-- .../pipelines/java/maven/gitlab-build-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/gitlab-build-edp.yaml | 13 +++++++++++-- .../java/maven/gitlab-build-lib-default.yaml | 13 +++++++++++-- .../pipelines/java/maven/gitlab-build-lib-edp.yaml | 13 +++++++++++-- .../pipelines/java/maven/gitlab-review-lib.yaml | 13 +++++++++++-- .../pipelines/java/maven/gitlab-review.yaml | 13 +++++++++++-- .../js/npm/antora/bitbucket-build-default.yaml | 3 ++- .../js/npm/antora/bitbucket-build-edp.yaml | 3 ++- .../pipelines/js/npm/antora/bitbucket-review.yaml | 3 ++- .../js/npm/antora/gerrit-build-default.yaml | 3 ++- .../pipelines/js/npm/antora/gerrit-build-edp.yaml | 3 ++- .../pipelines/js/npm/antora/gerrit-review.yaml | 3 ++- .../js/npm/antora/github-build-default.yaml | 3 ++- .../pipelines/js/npm/antora/github-build-edp.yaml | 3 ++- .../pipelines/js/npm/antora/github-review.yaml | 3 ++- .../js/npm/antora/gitlab-build-default.yaml | 3 ++- .../pipelines/js/npm/antora/gitlab-build-edp.yaml | 3 ++- .../pipelines/js/npm/antora/gitlab-review.yaml | 3 ++- .../pipelines/js/npm/bitbucket-build-default.yaml | 3 ++- .../pipelines/js/npm/bitbucket-build-edp.yaml | 3 ++- .../js/npm/bitbucket-build-lib-default.yaml | 3 ++- .../pipelines/js/npm/bitbucket-build-lib-edp.yaml | 3 ++- .../pipelines/js/npm/bitbucket-review-lib.yaml | 3 ++- .../pipelines/js/npm/bitbucket-review.yaml | 3 ++- .../pipelines/js/npm/gerrit-build-default.yaml | 3 ++- .../pipelines/js/npm/gerrit-build-edp.yaml | 3 ++- .../pipelines/js/npm/gerrit-build-lib-default.yaml | 3 ++- .../pipelines/js/npm/gerrit-build-lib-edp.yaml | 3 ++- .../pipelines/js/npm/gerrit-review-lib.yaml | 3 ++- .../templates/pipelines/js/npm/gerrit-review.yaml | 3 ++- .../pipelines/js/npm/github-build-default.yaml | 3 ++- .../pipelines/js/npm/github-build-edp.yaml | 3 ++- .../pipelines/js/npm/github-build-lib-default.yaml | 3 ++- .../pipelines/js/npm/github-build-lib-edp.yaml | 3 ++- .../pipelines/js/npm/github-review-lib.yaml | 3 ++- .../templates/pipelines/js/npm/github-review.yaml | 3 ++- .../pipelines/js/npm/gitlab-build-default.yaml | 3 ++- .../pipelines/js/npm/gitlab-build-edp.yaml | 3 ++- .../pipelines/js/npm/gitlab-build-lib-default.yaml | 3 ++- .../pipelines/js/npm/gitlab-build-lib-edp.yaml | 3 ++- .../pipelines/js/npm/gitlab-review-lib.yaml | 3 ++- .../templates/pipelines/js/npm/gitlab-review.yaml | 3 ++- .../pipelines/opa/bitbucket-build-lib-default.yaml | 3 ++- .../pipelines/opa/bitbucket-build-lib-edp.yaml | 3 ++- .../pipelines/opa/bitbucket-review-lib.yaml | 3 ++- .../pipelines/opa/gerrit-build-lib-default.yaml | 3 ++- .../pipelines/opa/gerrit-build-lib-edp.yaml | 3 ++- .../templates/pipelines/opa/gerrit-review-lib.yaml | 3 ++- .../pipelines/opa/github-build-lib-default.yaml | 3 ++- .../pipelines/opa/github-build-lib-edp.yaml | 3 ++- .../templates/pipelines/opa/github-review-lib.yaml | 3 ++- .../pipelines/opa/gitlab-build-lib-default.yaml | 3 ++- .../pipelines/opa/gitlab-build-lib-edp.yaml | 3 ++- .../templates/pipelines/opa/gitlab-review-lib.yaml | 3 ++- .../pipelines/python/bitbucket-build-default.yaml | 3 ++- .../pipelines/python/bitbucket-build-edp.yaml | 3 ++- .../python/bitbucket-build-lib-default.yaml | 3 ++- .../pipelines/python/bitbucket-build-lib-edp.yaml | 3 ++- .../pipelines/python/bitbucket-review-lib.yaml | 3 ++- .../pipelines/python/bitbucket-review.yaml | 3 ++- .../python/fastapi/github-build-default.yaml | 3 ++- .../pipelines/python/fastapi/github-review.yaml | 3 ++- .../pipelines/python/gerrit-build-default.yaml | 3 ++- .../pipelines/python/gerrit-build-edp.yaml | 3 ++- .../pipelines/python/gerrit-build-lib-default.yaml | 3 ++- .../pipelines/python/gerrit-build-lib-edp.yaml | 3 ++- .../pipelines/python/gerrit-review-lib.yaml | 3 ++- .../templates/pipelines/python/gerrit-review.yaml | 3 ++- .../pipelines/python/github-build-default.yaml | 3 ++- .../pipelines/python/github-build-edp.yaml | 3 ++- .../pipelines/python/github-build-lib-default.yaml | 3 ++- .../pipelines/python/github-build-lib-edp.yaml | 3 ++- .../pipelines/python/github-review-lib.yaml | 3 ++- .../templates/pipelines/python/github-review.yaml | 3 ++- .../pipelines/python/gitlab-build-default.yaml | 3 ++- .../pipelines/python/gitlab-build-edp.yaml | 3 ++- .../pipelines/python/gitlab-build-lib-default.yaml | 3 ++- .../pipelines/python/gitlab-build-lib-edp.yaml | 3 ++- .../pipelines/python/gitlab-review-lib.yaml | 3 ++- .../templates/pipelines/python/gitlab-review.yaml | 3 ++- .../rpm/maven/bitbucket-build-default.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/bitbucket-build-edp.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/bitbucket-review.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gerrit-build-default.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gerrit-build-edp.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gerrit-review.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/github-build-default.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/github-build-edp.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/github-review.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gitlab-build-default.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gitlab-build-edp.yaml | 13 +++++++++++-- .../pipelines/rpm/maven/gitlab-review.yaml | 13 +++++++++++-- .../pipelines-library/templates/tasks/ansible.yaml | 2 +- .../tasks/autotest-cd-pipeline/init-autotests.yaml | 2 +- .../tasks/autotest-cd-pipeline/wait-autotest.yaml | 2 +- .../tasks/autotests/TestsMavenAutotest.yaml | 4 ++-- .../templates/tasks/bitbucket-set-status.yaml | 2 +- .../pipelines-library/templates/tasks/cd/clean.yaml | 2 +- .../templates/tasks/cd/deploy-ansible-awx.yaml | 2 +- .../templates/tasks/cd/deploy-ansible.yaml | 2 +- .../tasks/cd/deploy-applicationset-cli.yaml | 2 +- .../templates/tasks/check-helm-chart-name.yaml | 2 +- .../pipelines-library/templates/tasks/codenarc.yaml | 4 ++-- .../templates/tasks/commit-validate.yaml | 2 +- .../templates/tasks/create-ecr-repository.yaml | 2 +- .../templates/tasks/ecr-to-docker.yaml | 2 +- charts/pipelines-library/templates/tasks/edp-c.yaml | 2 +- .../templates/tasks/edp-gradle.yaml | 2 +- .../pipelines-library/templates/tasks/edp-npm.yaml | 2 +- .../pipelines-library/templates/tasks/edp-rpm.yaml | 2 +- .../templates/tasks/gerrit-ssh-cmd.yaml | 2 +- .../templates/tasks/get-cache.yaml | 2 +- .../tasks/getversion/defaulttype/GetVersion.yaml | 4 ++-- .../getversion/defaulttype/GetVersionHelm.yaml | 2 +- .../tasks/getversion/defaulttype/GetVersionRPM.yaml | 4 ++-- .../defaulttype/UpdateBuildNumberDotnet.yaml | 4 ++-- .../defaulttype/UpdateBuildNumberGradle.yaml | 2 +- .../defaulttype/UpdateBuildNumberNpm.yaml | 2 +- .../defaulttype/UpdateBuildNumberPython.yaml | 2 +- .../tasks/getversion/edptype/GetVersionEDP.yaml | 2 +- .../getversion/edptype/UpdateBuildNumberCsharp.yaml | 2 +- .../getversion/edptype/UpdateBuildNumberDotnet.yaml | 2 +- .../getversion/edptype/UpdateBuildNumberGradle.yaml | 2 +- .../edptype/UpdateBuildNumberHelmChart.yaml | 2 +- .../getversion/edptype/UpdateBuildNumberNpm.yaml | 2 +- .../getversion/edptype/UpdateBuildNumberPython.yaml | 2 +- .../pipelines-library/templates/tasks/git-cli.yaml | 2 +- .../templates/tasks/github-set-status.yaml | 2 +- charts/pipelines-library/templates/tasks/go.yaml | 2 +- .../pipelines-library/templates/tasks/gradle.yaml | 2 +- .../templates/tasks/helm-dependency-update.yaml | 2 +- .../templates/tasks/helm-docs.yaml | 4 ++-- .../helm-libraries/helm-dependency-update-lib.yaml | 2 +- .../tasks/helm-libraries/helm-docs-lib.yaml | 2 +- .../tasks/helm-libraries/helm-lint-lib.yaml | 2 +- .../tasks/helm-libraries/helm-push-lib.yaml | 4 ++-- .../tasks/helm-libraries/helm-template-lib.yaml | 2 +- .../templates/tasks/helm-push.yaml | 4 ++-- .../templates/tasks/helm-template.yaml | 2 +- .../templates/tasks/image-scan.yaml | 4 ++-- .../templates/tasks/init-values.yaml | 2 +- .../pipelines-library/templates/tasks/kaniko.yaml | 6 +++--- .../templates/tasks/maven-get-module.yaml | 2 +- charts/pipelines-library/templates/tasks/maven.yaml | 2 +- charts/pipelines-library/templates/tasks/npm.yaml | 2 +- charts/pipelines-library/templates/tasks/opa.yaml | 6 +++--- .../templates/tasks/promote-images.yaml | 2 +- .../templates/tasks/push-to-jira.yaml | 2 +- .../pipelines-library/templates/tasks/python.yaml | 2 +- .../templates/tasks/save-cache.yaml | 2 +- .../pipelines-library/templates/tasks/security.yaml | 2 +- .../templates/tasks/send-to-microsoft-teams.yaml | 2 +- .../templates/tasks/sonar/sonarqube-dotnet.yaml | 4 ++-- .../templates/tasks/sonar/sonarqube-general.yaml | 4 ++-- .../templates/tasks/sonar/sonarqube-gradle.yaml | 4 ++-- .../templates/tasks/sonar/sonarqube-maven.yaml | 4 ++-- .../templates/tasks/terraform-check.yaml | 2 +- .../templates/tasks/terraform.yaml | 2 +- .../templates/tasks/trivy-scan.yaml | 2 +- .../templates/tasks/update-cbb.yaml | 2 +- .../templates/tasks/update-cbis.yaml | 2 +- charts/pipelines-library/values.yaml | 11 ++++++++--- charts/tekton-cache/README.md | 1 + charts/tekton-cache/values.yaml | 2 ++ 288 files changed, 1232 insertions(+), 381 deletions(-) diff --git a/charts/pipelines-library/README.md b/charts/pipelines-library/README.md index 89aa46a5..c7aad58b 100644 --- a/charts/pipelines-library/README.md +++ b/charts/pipelines-library/README.md @@ -109,7 +109,7 @@ Follows [Tekton Interceptor](https://tekton.dev/vault/triggers-main/clusterinter | grafana.enabled | bool | `false` | | | grafana.serviceMonitor.prometheusReleaseLabels.release | string | `"prom"` | | | interceptor.affinity | object | `{}` | Affinity settings for pod assignment | -| interceptor.enabled | bool | `true` | Deploy EDP interceptor as a part of pipeline library when true. Default: true | +| interceptor.enabled | bool | `true` | Deploy KubeRocketCI interceptor as a part of pipeline library when true. Default: true | | interceptor.image.pullPolicy | string | `"IfNotPresent"` | | | interceptor.image.repository | string | `"epamedp/edp-tekton"` | | | interceptor.image.tag | string | `nil` | Overrides the image tag whose default is the chart appVersion. | @@ -133,6 +133,7 @@ Follows [Tekton Interceptor](https://tekton.dev/vault/triggers-main/clusterinter | kaniko.image.tag | string | `"v1.12.1"` | | | kaniko.roleArn | string | `""` | AWS IAM role to be used for kaniko pod service account (IRSA). Format: arn:aws:iam:::role/ | | nameOverride | string | `""` | | +| pipelines.image.registry | string | `"docker.io"` | Registry for tekton pipelines images. Default: docker.io | | tekton-cache.enabled | bool | `true` | Enables the Tekton-cache subchart. | | tekton-cache.url | string | `"http://tekton-cache:8080"` | Defines the URL to the tekton-cache. Default: http://tekton-cache:8080 | | tekton.configs.gradleConfigMap | string | `"custom-gradle-settings"` | Default configuration maps for provisioning init.gradle file, REPOSITORY_SNAPSHOTS_PATH and REPOSITORY_RELEASES_PATH environment variables. | diff --git a/charts/pipelines-library/templates/_helpers.tpl b/charts/pipelines-library/templates/_helpers.tpl index 5800d7b2..909ba972 100644 --- a/charts/pipelines-library/templates/_helpers.tpl +++ b/charts/pipelines-library/templates/_helpers.tpl @@ -53,3 +53,10 @@ Validate values of gitProviders {{- end }} {{- end }} {{- end }} + +{{/* +Define registry for pipelines images +*/}} +{{- define "edp-tekton.registry" -}} +{{- .Values.pipelines.image.registry -}} +{{- end -}} diff --git a/charts/pipelines-library/templates/pipelines/_common_dotnet.yaml b/charts/pipelines-library/templates/pipelines/_common_dotnet.yaml index 98b851fc..3402cab4 100644 --- a/charts/pipelines-library/templates/pipelines/_common_dotnet.yaml +++ b/charts/pipelines-library/templates/pipelines/_common_dotnet.yaml @@ -56,8 +56,8 @@ else ARTIFACT_REPOSITORY_SOURCE="nugetStorageReleases" fi - - # Note: The api-key is only used as a placeholder. + + # Note: The api-key is only used as a placeholder. # Ref: https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops#publish-packages dotnet nuget push ${nugetPackagesPath} --source ${ARTIFACT_REPOSITORY_SOURCE} --api-key key workspaces: diff --git a/charts/pipelines-library/templates/pipelines/_common_js_npm.yaml b/charts/pipelines-library/templates/pipelines/_common_js_npm.yaml index 36d02965..32829f33 100644 --- a/charts/pipelines-library/templates/pipelines/_common_js_npm.yaml +++ b/charts/pipelines-library/templates/pipelines/_common_js_npm.yaml @@ -47,7 +47,7 @@ versionLowerCase=$(echo $(tasks.get-version.results.VERSION) | tr '[:upper:]' '[:lower:]') export NEXUS_HOST="//${NEXUS_HOST_URL#*://}" - + if [[ "$versionLowerCase" == *"snapshot"* ]]; then export npm_config_userconfig=/var/configmap/.npmrc-publish-snapshots else diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-default.yaml index 7ff4ffe7..5cec06a5 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-edp.yaml index f980cfd9..9e088b2e 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-review.yaml index 4f637e9d..a876b9b5 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/bitbucket-review.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-default.yaml index 880f575e..0cdf4cc3 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-edp.yaml index 92b17f24..f90032fe 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-review.yaml index be61fb0e..71214488 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gerrit-review.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-default.yaml index e2bba90c..6ba5537c 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-edp.yaml index 8cb0ab54..97598c5d 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-review.yaml index 2d7ffe47..a0b6a1c5 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/github-review.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-default.yaml index 762bb436..0308eac1 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-edp.yaml index 1d00840d..95c7581b 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-review.yaml index 02a14712..abbafb84 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/gradle/gitlab-review.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-default.yaml index cde26d50..f23e9436 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-default.yaml @@ -1,5 +1,10 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-edp.yaml index 0311c50c..29ac87a0 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-build-edp.yaml @@ -1,5 +1,10 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-review.yaml index b7e5ace2..726bb35c 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/bitbucket-review.yaml @@ -1,5 +1,10 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-default.yaml index 359aab1c..28a78bc6 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-default.yaml @@ -1,5 +1,10 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-edp.yaml index c28edb4f..4bccf62e 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-build-edp.yaml @@ -1,5 +1,10 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-review.yaml index 0eb0fe99..837c1d6e 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gerrit-review.yaml @@ -1,5 +1,10 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-default.yaml index 8fa69122..43e8cb3d 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-default.yaml @@ -1,5 +1,10 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-edp.yaml index 9f2b5726..4945e3b4 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/github-build-edp.yaml @@ -1,5 +1,10 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/github-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/github-review.yaml index 46a025f8..149d2071 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/github-review.yaml @@ -1,5 +1,10 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-default.yaml index d3a8544d..d040d07d 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-default.yaml @@ -1,5 +1,10 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-edp.yaml index a5a71ea5..e549b2ca 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-build-edp.yaml @@ -1,5 +1,10 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-review.yaml index 863fff26..824c2279 100644 --- a/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/autotests/maven/gitlab-review.yaml @@ -1,5 +1,10 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-default.yaml index befe3673..554e856c 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-default.yaml @@ -35,7 +35,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ include "edp-tekton.registry" . }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-edp.yaml index b4eeb3cb..160ac831 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-review.yaml index e6579160..2dd44548 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-review.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -42,7 +43,7 @@ spec: description: "repository full name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-default.yaml index 846d911c..d2f74218 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-edp.yaml index b1960fb4..ed48b5f5 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-review.yaml index a9a31118..fc6799c5 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gerrit-review.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -34,7 +35,7 @@ spec: description: "Project name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/github-build-default.yaml index 19d4863a..bfc2d91d 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/github-build-edp.yaml index 514836a9..3452261e 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/github-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/github-review.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/github-review.yaml index c3d2101e..0d8cb3be 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-default.yaml index d488103a..245b52b5 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-edp.yaml index f209ace0..7208bfbc 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-review.yaml index cbfbae91..5e7b0810 100644 --- a/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/cmake/gitlab-review.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -42,7 +43,7 @@ spec: description: "repository full name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-default.yaml index e64921d7..7812a034 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-edp.yaml index de0032f2..46fa6591 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-review.yaml index 9507a31f..feb62667 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/bitbucket-review.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -42,7 +43,7 @@ spec: description: "repository full name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-default.yaml index daa19e50..9cf947f1 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-edp.yaml index db2ce3ad..4cae3e67 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gerrit-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/c/make/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/c/make/gerrit-review.yaml index 401725d2..21154136 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gerrit-review.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: description: "Project name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/c/make/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/make/github-build-default.yaml index 3c8258f2..06fc7c8b 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/make/github-build-edp.yaml index 97dad14c..22d1ca11 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/github-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/github-review.yaml b/charts/pipelines-library/templates/pipelines/c/make/github-review.yaml index d900aff5..3d31308c 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-default.yaml index a64c58f8..46bd279b 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-edp.yaml index c684a2b2..4d04138e 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gitlab-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/c/make/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/c/make/gitlab-review.yaml index 831c6e22..f0c2e411 100644 --- a/charts/pipelines-library/templates/pipelines/c/make/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/c/make/gitlab-review.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -42,7 +43,7 @@ spec: description: "repository full name" type: string - name: image - default: 'epamedp/tekton-python-make:0.1.7' + default: '{{ $registry }}/epamedp/tekton-python-make:0.1.7' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/cd/deploy-ansible-awx.yaml b/charts/pipelines-library/templates/pipelines/cd/deploy-ansible-awx.yaml index 0c73b2aa..d637d927 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy-ansible-awx.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy-ansible-awx.yaml @@ -1,3 +1,4 @@ +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -36,7 +37,7 @@ spec: name: run-quality-gate params: - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" @@ -63,7 +64,7 @@ spec: - deploy-app params: - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" diff --git a/charts/pipelines-library/templates/pipelines/cd/deploy-ansible.yaml b/charts/pipelines-library/templates/pipelines/cd/deploy-ansible.yaml index 6a4632b7..f49cf281 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy-ansible.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy-ansible.yaml @@ -1,3 +1,4 @@ +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: name: run-quality-gate params: - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" @@ -59,7 +60,7 @@ spec: - deploy-app params: - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" diff --git a/charts/pipelines-library/templates/pipelines/cd/deploy-with-approve.yaml b/charts/pipelines-library/templates/pipelines/cd/deploy-with-approve.yaml index f7f3a828..b1601643 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy-with-approve.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy-with-approve.yaml @@ -1,3 +1,4 @@ +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: - name: KUBECONFIG_SECRET_NAME value: $(params.KUBECONFIG_SECRET_NAME) - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" diff --git a/charts/pipelines-library/templates/pipelines/cd/deploy-with-autotests.yaml b/charts/pipelines-library/templates/pipelines/cd/deploy-with-autotests.yaml index 5e5cff02..3b8cf487 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy-with-autotests.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy-with-autotests.yaml @@ -1,3 +1,4 @@ +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -45,7 +46,7 @@ spec: - name: KUBECONFIG_SECRET_NAME value: $(params.KUBECONFIG_SECRET_NAME) - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" @@ -74,7 +75,7 @@ spec: - name: KUBECONFIG_SECRET_NAME value: $(params.KUBECONFIG_SECRET_NAME) - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" diff --git a/charts/pipelines-library/templates/pipelines/cd/deploy.yaml b/charts/pipelines-library/templates/pipelines/cd/deploy.yaml index 7e10fe32..e6c10d7a 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy.yaml @@ -1,3 +1,4 @@ +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -37,7 +38,7 @@ spec: - name: KUBECONFIG_SECRET_NAME value: $(params.KUBECONFIG_SECRET_NAME) - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" @@ -66,7 +67,7 @@ spec: - name: KUBECONFIG_SECRET_NAME value: $(params.KUBECONFIG_SECRET_NAME) - name: BASE_IMAGE - value: "bitnami/kubectl:1.25.4" + value: "{{ $registry }}/bitnami/kubectl:1.25.4" - name: EXTRA_COMMANDS value: echo "Hello World" diff --git a/charts/pipelines-library/templates/pipelines/docker/kaniko/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/docker/kaniko/gerrit-build-default.yaml index 82728bd0..04b27f3c 100644 --- a/charts/pipelines-library/templates/pipelines/docker/kaniko/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/docker/kaniko/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := .Values.pipelines.image.registry | default "ghcr.io" -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'ghcr.io/hadolint/hadolint:v2.10.0-alpine' + default: '{{ $registry }}/hadolint/hadolint:v2.10.0-alpine' description: "kaniko image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/go/bitbucket-build-default.yaml index 81a8689d..6d33d8ba 100644 --- a/charts/pipelines-library/templates/pipelines/go/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/go/bitbucket-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/go/bitbucket-build-edp.yaml index 60b87781..b5b0af80 100644 --- a/charts/pipelines-library/templates/pipelines/go/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/go/bitbucket-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/go/bitbucket-review.yaml index b27096fb..9c79c1ed 100644 --- a/charts/pipelines-library/templates/pipelines/go/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/go/bitbucket-review.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -44,7 +45,7 @@ spec: description: "repository full name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/go/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/go/gerrit-build-default.yaml index 4d93d550..edd50bd9 100644 --- a/charts/pipelines-library/templates/pipelines/go/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/go/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/go/gerrit-build-edp.yaml index 2be3bbfb..d1f70d67 100644 --- a/charts/pipelines-library/templates/pipelines/go/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gerrit-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/go/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/go/gerrit-review.yaml index cf4875c0..81aeb475 100644 --- a/charts/pipelines-library/templates/pipelines/go/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gerrit-review.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -34,7 +35,7 @@ spec: description: "Project name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/go/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/go/github-build-default.yaml index e4722dda..297be54c 100644 --- a/charts/pipelines-library/templates/pipelines/go/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/go/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/go/github-build-edp.yaml index 69e49c2d..a5fde2c4 100644 --- a/charts/pipelines-library/templates/pipelines/go/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/go/github-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/github-review.yaml b/charts/pipelines-library/templates/pipelines/go/github-review.yaml index 8b05c703..3d46af93 100644 --- a/charts/pipelines-library/templates/pipelines/go/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/go/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -41,7 +42,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/go/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/go/gitlab-build-default.yaml index a6ac88a2..8ed7ef65 100644 --- a/charts/pipelines-library/templates/pipelines/go/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gitlab-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/go/gitlab-build-edp.yaml index 2584abec..0364f69a 100644 --- a/charts/pipelines-library/templates/pipelines/go/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gitlab-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}/golang:1.22-bookworm' description: "go image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/go/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/go/gitlab-review.yaml index 7e585780..2315bc98 100644 --- a/charts/pipelines-library/templates/pipelines/go/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/go/gitlab-review.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "beego" "gin" "operator-sdk" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -44,7 +45,7 @@ spec: description: "repository full name" type: string - name: image - default: 'golang:1.22-bookworm' + default: '{{ $registry }}golang:1.22-bookworm' description: "go image version" type: string - name: CHART_DIR diff --git a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-default.yaml index d994ddd1..d8d1d331 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-edp.yaml index e5cdb642..c4e0037e 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-review-lib.yaml index ba056ee3..42c782c2 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/bitbucket-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-default.yaml index bc1d9532..35eb39c2 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-edp.yaml index 2ecc6e73..ed323a14 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gerrit-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/groovy/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/groovy/gerrit-review-lib.yaml index db119218..fcb5b158 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gerrit-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: description: "Project name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-default.yaml index a1368418..09c75ee9 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-edp.yaml index df8b37da..f86e490a 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/github-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/groovy/github-review-lib.yaml index f12878d3..88627537 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/github-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-default.yaml index 3a2f6dc7..6f9ff5c6 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-edp.yaml index 91d98304..c61a5b3f 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gitlab-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/groovy/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/groovy/gitlab-review-lib.yaml index b28daa5f..4b4352ea 100644 --- a/charts/pipelines-library/templates/pipelines/groovy/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/groovy/gitlab-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -39,7 +40,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'gradle:7.5.1-jdk11' + default: '{{ $registry }}/gradle:7.5.1-jdk11' description: "gradle image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-default.yaml index af9fc4f1..340f4343 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-edp.yaml index da25ee54..bbe2d67c 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-default.yaml index 90ec7f95..c0e8ae40 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-edp.yaml index 795f83ea..b3d8a1f5 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review-lib.yaml index 54ff658d..15130815 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review.yaml index 5a51f00e..89d6cd8b 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/bitbucket-review.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-default.yaml index 12d60381..b5e58d81 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-edp.yaml index 57a89cca..1f35821e 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-default.yaml index 14e20b9d..dc650246 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-edp.yaml index b02b63ac..b00927db 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review-lib.yaml index 6ec1d4e4..c36cf9e7 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review.yaml index 276367f0..9c24ee12 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gerrit-review.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-default.yaml index 79525591..980df99f 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-edp.yaml index fefe1c5f..08a7ff00 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-default.yaml index 85d04624..54c5808d 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-edp.yaml index 4e5c97d8..35a937cc 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-review-lib.yaml index 0930bcd2..3c19bd1c 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/github-review.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/github-review.yaml index 9834152c..6d79b0cf 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/github-review.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-default.yaml index 69c9adef..6eb28db5 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-edp.yaml index 653cd574..28a41431 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-default.yaml index 0840976a..9fe4b668 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-edp.yaml index 7a25a1d3..929fb54e 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review-lib.yaml index 0175d1ee..a4d3bf5c 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review.yaml index 61baf165..38868486 100644 --- a/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/gradle/gitlab-review.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "gradle:7.5.1-jdk8" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} -{{- $altResourceMapping := dict "java8" "gradle:7.5.1-jdk11" "java11" "gradle:7.5.1-jdk11" "java17" "gradle:7.5.1-jdk17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk8" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java11" (printf "%s/gradle:7.5.1-jdk11" $registry) + "java17" (printf "%s/gradle:7.5.1-jdk17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-default.yaml index bd8cf8f8..28f82f4f 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-edp.yaml index 0114a051..9d3dd034 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-default.yaml index c0e907f1..aef40e6c 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-edp.yaml index dc87174f..09a2daf3 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review-lib.yaml index ffe862e5..694fd2c1 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review.yaml index d40edc13..87adf51c 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/bitbucket-review.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-default.yaml index 0db6cb09..83a6d511 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-edp.yaml index df089b8a..2af4e823 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-default.yaml index 132e861a..39cbda54 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-edp.yaml index 87c73e7c..3d1b81f2 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review-lib.yaml index 73768976..2f9adc0c 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review.yaml index 898734b8..46ea902e 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gerrit-review.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-build-default.yaml index 2ce3b789..3bdda560 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-build-edp.yaml index 54a2821e..00409b7b 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-default.yaml index 0949e6d4..b2ee8532 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-edp.yaml index c8202c53..f2805732 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-review-lib.yaml index 7c7531db..f0660952 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/github-review.yaml b/charts/pipelines-library/templates/pipelines/java/maven/github-review.yaml index e792ac47..cb6a6caf 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/github-review.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-default.yaml index 922f9fa1..91590022 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-edp.yaml index e378a115..e0ef2a1b 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-default.yaml index a7187f11..879fecb6 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-edp.yaml index 44084ade..1bcffb6a 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-build-lib-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review-lib.yaml index 8126ff97..b57aa41f 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review-lib.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review.yaml index 2cdd88a6..785c4a59 100644 --- a/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/java/maven/gitlab-review.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-default.yaml index 0cff016b..df386bfa 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-default.yaml @@ -1,5 +1,6 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-edp.yaml index bfa38282..2d63b05c 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-build-edp.yaml @@ -1,5 +1,6 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-review.yaml index 63373473..5c9fcaae 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/bitbucket-review.yaml @@ -1,5 +1,6 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-default.yaml index b0b6d4f2..53e235a8 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-default.yaml @@ -1,5 +1,6 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-edp.yaml index eaca94cd..903dad12 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-build-edp.yaml @@ -1,5 +1,6 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-review.yaml index f09daa3a..217d347b 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gerrit-review.yaml @@ -1,5 +1,6 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} {{- $gerritSSHPort := $.Values.global.gerritSSHPort -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-default.yaml index 57170b40..756439fa 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-default.yaml @@ -1,5 +1,6 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-edp.yaml index 64f00153..53788285 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-build-edp.yaml @@ -1,5 +1,6 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-review.yaml index 7517a00c..551a8d95 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/github-review.yaml @@ -1,5 +1,6 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-default.yaml index 14c48889..00702e0f 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-default.yaml @@ -1,5 +1,6 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-edp.yaml index 7bcec347..82dbd353 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-build-edp.yaml @@ -1,5 +1,6 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-review.yaml index 58f8494f..85d4e6d7 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/antora/gitlab-review.yaml @@ -1,5 +1,6 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "antora" "antora/antora:3.1.4" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict "antora" (printf "%s/%s" $registry "antora/antora:3.1.4") -}} {{- range $k, $v := $resourceMapping }} apiVersion: tekton.dev/v1 kind: Pipeline diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-default.yaml index 3b9412f4..2b35e069 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-edp.yaml index 33a762a2..f27ea12a 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-default.yaml index f9eec01c..ef6da8bf 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-edp.yaml index b9cbdee9..be2059f2 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review-lib.yaml index 0f58335a..fb526402 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review.yaml index 17153818..249d7411 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/bitbucket-review.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-default.yaml index 01167d66..b88398bc 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-edp.yaml index f64a7d96..2be69e37 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-default.yaml index 3ae596f5..5439e2ad 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-edp.yaml index 3bfe3c15..f4c0dad8 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -33,7 +34,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review-lib.yaml index d60e3132..2afac2ee 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -34,7 +35,7 @@ spec: description: "Project name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review.yaml index 54eceb27..a613e303 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gerrit-review.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -34,7 +35,7 @@ spec: description: "Project name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-build-default.yaml index fc891cd7..8e126c9c 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-build-edp.yaml index 55e5af71..9f03d443 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-default.yaml index ef336f0f..0ddb1a2f 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-edp.yaml index 8e3872f2..88e9515c 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-review-lib.yaml index f53a4446..6302861e 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -41,7 +42,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/js/npm/github-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/github-review.yaml index 73049dcd..6129d1f3 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -41,7 +42,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-default.yaml index bc7d6b49..dfd2cee7 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-edp.yaml index dae34341..513497de 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-default.yaml index 133119f6..a0c23caf 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-edp.yaml index 8cf4232a..1bddb7ad 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -39,7 +40,7 @@ spec: default: "" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review-lib.yaml index bdcb51f5..a4ef15e1 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review.yaml index 7540ec2e..da8a31f7 100644 --- a/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/js/npm/gitlab-review.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $resourceMapping := list "react" "angular" "vue" "express" "next" -}} {{- range $k := $resourceMapping }} apiVersion: tekton.dev/v1 @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'docker.io/library/node:18.20.3-alpine3.20' + default: '{{ $registry }}/library/node:18.20.3-alpine3.20' description: "npm image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-default.yaml index c433fdec..f0c021b0 100644 --- a/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-edp.yaml index 5f30f7db..1b4ac130 100644 --- a/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/bitbucket-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/opa/bitbucket-review-lib.yaml index 5dfc908b..31db075a 100644 --- a/charts/pipelines-library/templates/pipelines/opa/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/bitbucket-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -28,7 +29,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-default.yaml index 1f4fac43..f5718719 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -28,7 +29,7 @@ spec: description: "Project name" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-edp.yaml index 38679627..4509728d 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gerrit-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/opa/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/opa/gerrit-review-lib.yaml index 6b63fadc..208bbf59 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gerrit-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: description: "Project name" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/opa/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/opa/github-build-lib-default.yaml index 1024fce5..e66121e2 100644 --- a/charts/pipelines-library/templates/pipelines/opa/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/github-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/opa/github-build-lib-edp.yaml index 51628701..163c0e3d 100644 --- a/charts/pipelines-library/templates/pipelines/opa/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/github-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/opa/github-review-lib.yaml index a9c15856..aa409309 100644 --- a/charts/pipelines-library/templates/pipelines/opa/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/github-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -28,7 +29,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-default.yaml index fe79ebfa..52973ff1 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-edp.yaml index dc08396f..b6d34a05 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gitlab-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/opa/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/opa/gitlab-review-lib.yaml index c6eeffff..0e5c62c0 100644 --- a/charts/pipelines-library/templates/pipelines/opa/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/opa/gitlab-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -28,7 +29,7 @@ spec: default: "" type: string - name: image - default: 'openpolicyagent/opa:0.45.0-debug' + default: '{{ $registry }}/openpolicyagent/opa:0.45.0-debug' description: "opa image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-default.yaml index 47f8ffc5..0322227e 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-edp.yaml index 2e26d4d5..96000a8f 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-default.yaml index 9cba939f..ed3e9faa 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-edp.yaml index 05ff35af..ed2c6d3b 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-review-lib.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-review-lib.yaml index 10ad8e61..bd7ba789 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/python/bitbucket-review.yaml index 5315e2d6..ee7b5398 100644 --- a/charts/pipelines-library/templates/pipelines/python/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/python/bitbucket-review.yaml @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/fastapi/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/python/fastapi/github-build-default.yaml index 14edb4b2..43b7f850 100644 --- a/charts/pipelines-library/templates/pipelines/python/fastapi/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/fastapi/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $frameworks := list "fastapi" "flask" -}} {{- range $framework := $frameworks }} apiVersion: tekton.dev/v1 @@ -37,7 +38,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-alpine3.16' + default: '{{ $registry }}/python:3.8-alpine3.16' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/fastapi/github-review.yaml b/charts/pipelines-library/templates/pipelines/python/fastapi/github-review.yaml index 0ff4eb93..d5ddb4d0 100644 --- a/charts/pipelines-library/templates/pipelines/python/fastapi/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/python/fastapi/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} {{- $frameworks := list "fastapi" "flask" -}} {{- range $framework := $frameworks }} apiVersion: tekton.dev/v1 @@ -45,7 +46,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-alpine3.16' + default: '{{ $registry }}/python:3.8-alpine3.16' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-build-default.yaml index e9af75c4..132e6daf 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-build-edp.yaml index 6c1afb7c..89f2a34b 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-default.yaml index ad29230a..0cf384ff 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-edp.yaml index 39cb13cd..6f4a8520 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -31,7 +32,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: changeNumber diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-review-lib.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-review-lib.yaml index cec624b9..7994e1d8 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: description: "Project name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/python/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/python/gerrit-review.yaml index ef90f8a5..d01d57db 100644 --- a/charts/pipelines-library/templates/pipelines/python/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gerrit-review.yaml @@ -1,4 +1,5 @@ {{ if has "gerrit" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -32,7 +33,7 @@ spec: description: "Project name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: targetBranch diff --git a/charts/pipelines-library/templates/pipelines/python/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/python/github-build-default.yaml index ec20744b..e3efc130 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/python/github-build-edp.yaml index bc29f8c5..36bfa6dd 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/github-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/python/github-build-lib-default.yaml index 619311a2..54376d13 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/github-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/python/github-build-lib-edp.yaml index b31b41f8..75232a5c 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/github-review-lib.yaml b/charts/pipelines-library/templates/pipelines/python/github-review-lib.yaml index 2902e977..c74ca41c 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/github-review.yaml b/charts/pipelines-library/templates/pipelines/python/github-review.yaml index 290e77d1..3328efbe 100644 --- a/charts/pipelines-library/templates/pipelines/python/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/python/github-review.yaml @@ -1,4 +1,5 @@ {{ if has "github" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-build-default.yaml index 7935db7a..5cc66390 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-build-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-build-edp.yaml index 390148bf..8200cdcb 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-build-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-default.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-default.yaml index b725db9b..c2d42f54 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-default.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-default.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-edp.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-edp.yaml index 38551dbd..d9fb38d6 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-build-lib-edp.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -35,7 +36,7 @@ spec: default: "" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: TICKET_NAME_PATTERN diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-review-lib.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-review-lib.yaml index 8cbc3e00..1e0d8190 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-review-lib.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-review-lib.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/python/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/python/gitlab-review.yaml index 48a6b0a6..8dffeb00 100644 --- a/charts/pipelines-library/templates/pipelines/python/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/python/gitlab-review.yaml @@ -1,4 +1,5 @@ {{ if has "gitlab" .Values.global.gitProviders }} +{{- $registry := include "edp-tekton.registry" . -}} apiVersion: tekton.dev/v1 kind: Pipeline metadata: @@ -43,7 +44,7 @@ spec: description: "Codebasebranch name" type: string - name: image - default: 'python:3.8-slim' + default: '{{ $registry }}/python:3.8-slim' description: "python image version" type: string - name: gitfullrepositoryname diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-default.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-default.yaml index 2579e6c4..da18f815 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-edp.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-edp.yaml index 87662544..2a26957c 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-review.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-review.yaml index 87eb9735..344bb822 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-review.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/bitbucket-review.yaml @@ -1,6 +1,15 @@ {{ if has "bitbucket" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-default.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-default.yaml index dd3a330f..d574d67f 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-edp.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-edp.yaml index 7ec781e7..4368b40b 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-review.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-review.yaml index bca3def5..5b87f9a5 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-review.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gerrit-review.yaml @@ -1,6 +1,15 @@ {{ if has "gerrit" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-default.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-default.yaml index 5cab5610..edf02f19 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-edp.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-edp.yaml index c2e64092..10212e6e 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/github-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/github-review.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/github-review.yaml index 6639a812..6470a4d6 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/github-review.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/github-review.yaml @@ -1,6 +1,15 @@ {{ if has "github" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-default.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-default.yaml index aba1a5cf..1226878e 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-default.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-default.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-edp.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-edp.yaml index 519bef52..a326a5ba 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-edp.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-build-edp.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-review.yaml b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-review.yaml index a890410b..46f7bccd 100644 --- a/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-review.yaml +++ b/charts/pipelines-library/templates/pipelines/rpm/maven/gitlab-review.yaml @@ -1,6 +1,15 @@ {{ if has "gitlab" .Values.global.gitProviders }} -{{- $resourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-8" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} -{{- $altResourceMapping := dict "java8" "maven:3.9.0-eclipse-temurin-11" "java11" "maven:3.9.0-eclipse-temurin-11" "java17" "maven:3.9.0-eclipse-temurin-17" -}} +{{- $registry := include "edp-tekton.registry" . -}} +{{- $resourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-8" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} +{{- $altResourceMapping := dict + "java8" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java11" (printf "%s/maven:3.9.0-eclipse-temurin-11" $registry) + "java17" (printf "%s/maven:3.9.0-eclipse-temurin-17" $registry) + -}} {{- range $k, $v := $resourceMapping }} {{- $valueFromAlt := pluck $k $altResourceMapping | first -}} apiVersion: tekton.dev/v1 diff --git a/charts/pipelines-library/templates/tasks/ansible.yaml b/charts/pipelines-library/templates/tasks/ansible.yaml index bbefb3fd..9d0611aa 100644 --- a/charts/pipelines-library/templates/tasks/ansible.yaml +++ b/charts/pipelines-library/templates/tasks/ansible.yaml @@ -23,7 +23,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: pipelinecomponents/ansible-lint:0.72.0 + default: {{ include "edp-tekton.registry" . }}/pipelinecomponents/ansible-lint:0.72.0 description: The ansible image. steps: - name: ansible diff --git a/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/init-autotests.yaml b/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/init-autotests.yaml index 9c9f08b9..49b54e0d 100644 --- a/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/init-autotests.yaml +++ b/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/init-autotests.yaml @@ -30,7 +30,7 @@ spec: type: string steps: - name: init-autotest - image: epamedp/tekton-autotest:0.1.3 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 workingDir: $(workspaces.source.path) volumeMounts: - name: autotests-workspace-template diff --git a/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/wait-autotest.yaml b/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/wait-autotest.yaml index 30aa3182..65312572 100644 --- a/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/wait-autotest.yaml +++ b/charts/pipelines-library/templates/tasks/autotest-cd-pipeline/wait-autotest.yaml @@ -13,7 +13,7 @@ spec: default: 'autotes-pipeline' steps: - name: wait-for - image: epamedp/tekton-autotest:0.1.3 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 workingDir: $(workspaces.source.path) env: - name: AUTOTEST_PIPELINES diff --git a/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml b/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml index 1a3331f9..2711b16a 100644 --- a/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml +++ b/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml @@ -27,7 +27,7 @@ spec: type: string steps: - name: check-run-json-file - image: "python:3.9.14-alpine3.16" + image: "{{ include "edp-tekton.registry" . }}/python:3.9.14-alpine3.16" workingDir: $(workspaces.source.path) script: | set -ex @@ -40,7 +40,7 @@ spec: fi - name: get-command - image: "python:3.10.1-alpine3.15" + image: "{{ include "edp-tekton.registry" . }}/python:3.10.1-alpine3.15" workingDir: $(workspaces.source.path) env: - name: RESULT_COMMAND_FILE_PATH diff --git a/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml b/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml index 075da14b..f0075fe8 100644 --- a/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml +++ b/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml @@ -78,7 +78,7 @@ spec: description: | Image providing the python binary which this task uses. type: string - default: python:3.10.1-alpine3.15 + default: {{ include "edp-tekton.registry" . }}/python:3.10.1-alpine3.15 - name: SHEBANG description: | Python path. Depends on the image. diff --git a/charts/pipelines-library/templates/tasks/cd/clean.yaml b/charts/pipelines-library/templates/tasks/cd/clean.yaml index b1af4edb..831ce75b 100644 --- a/charts/pipelines-library/templates/tasks/cd/clean.yaml +++ b/charts/pipelines-library/templates/tasks/cd/clean.yaml @@ -17,7 +17,7 @@ spec: steps: - name: clean-argo-app - image: epamedp/tekton-cd-pipeline:0.1.2 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-cd-pipeline:0.1.2 env: - name: ARGOCD_URL valueFrom: diff --git a/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml b/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml index 4c0c945b..7f303f90 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml @@ -26,7 +26,7 @@ spec: type: string steps: - name: deploy-ansible-awx - image: epamedp/tekton-ansible:0.1.1 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-ansible:0.1.1 env: - name: APPLICATIONS_PAYLOAD value: $(params.APPLICATIONS_PAYLOAD) diff --git a/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml b/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml index cebb43c1..5b86ab60 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml @@ -21,7 +21,7 @@ spec: steps: - name: run-ansible-script - image: epamedp/tekton-ansible:0.1.1 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-ansible:0.1.1 env: - name: APPLICATIONS_PAYLOAD value: "$(params.APPLICATIONS_PAYLOAD)" diff --git a/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml b/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml index f91fcd77..14dfaa64 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml @@ -22,7 +22,7 @@ spec: steps: - name: wait-for-deploy - image: epamedp/tekton-cd-pipeline:0.1.2 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-cd-pipeline:0.1.2 env: - name: ARGOCD_URL valueFrom: diff --git a/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml b/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml index 7815cd83..e57b13f9 100644 --- a/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml +++ b/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml @@ -21,7 +21,7 @@ spec: value: $(params.codebase_name) - name: CHART_DIR value: $(params.chart_dir) - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 script: | #!/bin/sh # Extract the chart name from the Chart.yaml diff --git a/charts/pipelines-library/templates/tasks/codenarc.yaml b/charts/pipelines-library/templates/tasks/codenarc.yaml index 0459de3d..98700523 100644 --- a/charts/pipelines-library/templates/tasks/codenarc.yaml +++ b/charts/pipelines-library/templates/tasks/codenarc.yaml @@ -28,7 +28,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ include "edp-tekton.registry" . }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -78,7 +78,7 @@ spec: name: $(params.ci-nexus) key: url - name: codenarc-report - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 workingDir: $(workspaces.source.path)/$(params.PROJECT_DIR) script: | cat /workspace/source/build/reports/codenarc/main.html diff --git a/charts/pipelines-library/templates/tasks/commit-validate.yaml b/charts/pipelines-library/templates/tasks/commit-validate.yaml index 2e1da91f..8b52593d 100644 --- a/charts/pipelines-library/templates/tasks/commit-validate.yaml +++ b/charts/pipelines-library/templates/tasks/commit-validate.yaml @@ -17,7 +17,7 @@ spec: description: "Pattern to validate a commit message" - name: BASE_IMAGE description: "The base image for the task." - default: "python:3.10.1-alpine3.15" + default: "{{ include "edp-tekton.registry" . }}/python:3.10.1-alpine3.15" - name: MAX_LINE_LENGTH description: "Maximum length of each line in the commit message." default: "80" diff --git a/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml b/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml index ab97f54c..bfb744f0 100644 --- a/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml +++ b/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml @@ -23,7 +23,7 @@ spec: default: edp-config steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ include "edp-tekton.registry" . }}/amazon/aws-cli:2.7.35 {{ if ne .Values.global.platform "openshift" }} env: - name: REPO_NAME diff --git a/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml b/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml index de3009f9..9a3cec41 100644 --- a/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml +++ b/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml @@ -40,7 +40,7 @@ spec: description: this configmap holds aws_region parameter default: edp-config steps: - - image: amazon/aws-cli:2.7.35 + - image: {{ include "edp-tekton.registry" . }}/amazon/aws-cli:2.7.35 name: get-ecr-pass computeResources: {} env: diff --git a/charts/pipelines-library/templates/tasks/edp-c.yaml b/charts/pipelines-library/templates/tasks/edp-c.yaml index 2f327bd6..6b6ed763 100644 --- a/charts/pipelines-library/templates/tasks/edp-c.yaml +++ b/charts/pipelines-library/templates/tasks/edp-c.yaml @@ -23,7 +23,7 @@ spec: description: The directory containing source code. - name: BASE_IMAGE type: string - default: "epamedp/tekton-python-make:0.1.7" + default: "{{ include "edp-tekton.registry" . }}/epamedp/tekton-python-make:0.1.7" description: C base image - name: EXTRA_COMMANDS_BUILD type: string diff --git a/charts/pipelines-library/templates/tasks/edp-gradle.yaml b/charts/pipelines-library/templates/tasks/edp-gradle.yaml index d61080da..513d88aa 100644 --- a/charts/pipelines-library/templates/tasks/edp-gradle.yaml +++ b/charts/pipelines-library/templates/tasks/edp-gradle.yaml @@ -24,7 +24,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ include "edp-tekton.registry" . }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string diff --git a/charts/pipelines-library/templates/tasks/edp-npm.yaml b/charts/pipelines-library/templates/tasks/edp-npm.yaml index 04f4613c..1e450a92 100644 --- a/charts/pipelines-library/templates/tasks/edp-npm.yaml +++ b/charts/pipelines-library/templates/tasks/edp-npm.yaml @@ -27,7 +27,7 @@ spec: description: The path where package.json of the project is defined. - name: BASE_IMAGE type: string - default: "docker.io/library/node:18.20.3-alpine3.20" + default: "{{ include "edp-tekton.registry" . }}/library/node:18.20.3-alpine3.20" description: The node image you want to use. - name: ci-nexus type: string diff --git a/charts/pipelines-library/templates/tasks/edp-rpm.yaml b/charts/pipelines-library/templates/tasks/edp-rpm.yaml index 5d347ddd..d33aa29b 100644 --- a/charts/pipelines-library/templates/tasks/edp-rpm.yaml +++ b/charts/pipelines-library/templates/tasks/edp-rpm.yaml @@ -22,7 +22,7 @@ spec: description: The path to the context. - name: BASE_IMAGE type: string - default: "docker.io/epamedp/tekton-rpm:0.1.4" + default: "{{ include "edp-tekton.registry" . }}/epamedp/tekton-rpm:0.1.4" description: The rpm image. Should contain all necessary tools to build rpm. - name: ci-nexus type: string diff --git a/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml b/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml index 0e9b6907..ccce180b 100644 --- a/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml +++ b/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml @@ -50,7 +50,7 @@ spec: default: "/tekton/home" steps: - name: ssh - image: 'epamedp/tekton-openssh-client:0.1.5' + image: '{{ include "edp-tekton.registry" . }}/epamedp/tekton-openssh-client:0.1.5' env: - name: GERRIT_HOST value: "$(params.GERRIT_HOST)" diff --git a/charts/pipelines-library/templates/tasks/get-cache.yaml b/charts/pipelines-library/templates/tasks/get-cache.yaml index 0ef13b27..58dff677 100644 --- a/charts/pipelines-library/templates/tasks/get-cache.yaml +++ b/charts/pipelines-library/templates/tasks/get-cache.yaml @@ -21,7 +21,7 @@ spec: type: string - name: BASE_IMAGE description: "Base image" - default: "epamedp/tekton-autotest:0.1.6" + default: "{{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.6" type: string steps: - name: get-cache diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml index 25da9d05..da753fff 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml @@ -23,7 +23,7 @@ spec: description: Normalized version steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 script: | ts=$(date "+%Y%m%d-%H%M%S") nts=$(date "+%Y%m%d.%H%M%S") @@ -33,7 +33,7 @@ spec: echo ${nts} | tr -d "\n" | tee $(results.NORMALIZED_VERSION.path) - name: get-version - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 env: - name: BRANCH_NAME value: "$(params.BRANCH_NAME)" diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml index 188bb084..933a21a4 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml @@ -23,7 +23,7 @@ spec: description: "CodebaseImageStream tag" steps: - name: get-version - image: linuxserver/yq + image: {{ include "edp-tekton.registry" . }}/linuxserver/yq env: - name: BRANCH_NAME value: "$(params.BRANCH_NAME)" diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml index 1133ad2e..afb6b9ba 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml @@ -22,7 +22,7 @@ spec: description: Normalized version steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 script: | ts=$(date "+%Y%m%d-%H%M%S") nts=$(date "+%Y%m%d.%H%M%S") @@ -32,7 +32,7 @@ spec: echo ${nts} | tr -d "\n" | tee $(results.NORMALIZED_VERSION.path) - name: get-version - image: alpine/make:4.2.1 + image: {{ include "edp-tekton.registry" . }}/alpine/make:4.2.1 workingDir: $(workspaces.source.path) script: | set -e diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml index 1ace316b..f8e3c4bb 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml @@ -24,14 +24,14 @@ spec: description: Current timestamp steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 script: | ts=$(date "+%Y%m%d-%H%M%S") echo "Current Timestamp: ${ts}" echo ${ts} | tr -d "\n" | tee $(results.TIMESTAMP.path) - name: get-version - image: alpine:3.18.9 + image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 env: - name: BRANCH_NAME value: "$(params.BRANCH_NAME)" diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml index 62c1f030..2670d9e4 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml index 78cb50c4..f3c4db73 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "node:18.9.0" + default: "{{ include "edp-tekton.registry" . }}/node:18.9.0" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml index 2d85d27a..f7af109e 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml index 008bc5db..1213412d 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml @@ -28,7 +28,7 @@ spec: - name: DEPLOYABLE_MODULE_DIR steps: - name: get-version - image: bitnami/kubectl:1.25.2 + image: {{ include "edp-tekton.registry" . }}/bitnami/kubectl:1.25.2 env: - name: CODEBASEBRANCH_NAME value: "$(params.CODEBASEBRANCH_NAME)" diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml index de25eeb0..bc100968 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml index a9c91b60..851c6ebf 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml index 94aa9435..e91d3a26 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml @@ -19,7 +19,7 @@ spec: type: string - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml index 1b5b64b0..0a40fc6c 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml @@ -17,7 +17,7 @@ spec: default: "." - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml index 1679a80e..39b03dcc 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml @@ -17,7 +17,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "node:18.9.0" + default: "{{ include "edp-tekton.registry" . }}/node:18.9.0" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml index 6bfcdeda..a43d825a 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml @@ -14,7 +14,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" steps: - name: update-build-number image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/git-cli.yaml b/charts/pipelines-library/templates/tasks/git-cli.yaml index c5b328a1..840d4876 100644 --- a/charts/pipelines-library/templates/tasks/git-cli.yaml +++ b/charts/pipelines-library/templates/tasks/git-cli.yaml @@ -49,7 +49,7 @@ spec: description: | The base image for the task. type: string - default: docker.io/alpine/git:v2.26.2@sha256:23618034b0be9205d9cc0846eb711b12ba4c9b468efdd8a59aac1d7b1a23363f #tag: v2.26.2 + default: {{ include "edp-tekton.registry" . }}/alpine/git:v2.26.2@sha256:23618034b0be9205d9cc0846eb711b12ba4c9b468efdd8a59aac1d7b1a23363f #tag: v2.26.2 - name: GIT_USER_NAME type: string description: | diff --git a/charts/pipelines-library/templates/tasks/github-set-status.yaml b/charts/pipelines-library/templates/tasks/github-set-status.yaml index 74ad3f27..c9440ffc 100644 --- a/charts/pipelines-library/templates/tasks/github-set-status.yaml +++ b/charts/pipelines-library/templates/tasks/github-set-status.yaml @@ -84,7 +84,7 @@ spec: description: | Image providing the python binary which this task uses. type: string - default: python:3.10.1-alpine3.15 + default: {{ include "edp-tekton.registry" . }}/python:3.10.1-alpine3.15 - name: SHEBANG description: | Python path. Depends on the image. diff --git a/charts/pipelines-library/templates/tasks/go.yaml b/charts/pipelines-library/templates/tasks/go.yaml index c08b155c..c1aee034 100644 --- a/charts/pipelines-library/templates/tasks/go.yaml +++ b/charts/pipelines-library/templates/tasks/go.yaml @@ -50,7 +50,7 @@ spec: default: "" - name: BASE_IMAGE description: "Base image" - default: "golang:1.22-bookworm" + default: "{{ include "edp-tekton.registry" . }}/golang:1.22-bookworm" type: string - name: GOPROXY description: "Go proxy server" diff --git a/charts/pipelines-library/templates/tasks/gradle.yaml b/charts/pipelines-library/templates/tasks/gradle.yaml index d940f8e7..6a39fb2e 100644 --- a/charts/pipelines-library/templates/tasks/gradle.yaml +++ b/charts/pipelines-library/templates/tasks/gradle.yaml @@ -24,7 +24,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ include "edp-tekton.registry" . }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string diff --git a/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml b/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml index b6e03c73..3ab3545b 100644 --- a/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml +++ b/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml @@ -24,7 +24,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ include "edp-tekton.registry" . }}/alpine/helm:3.11.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user diff --git a/charts/pipelines-library/templates/tasks/helm-docs.yaml b/charts/pipelines-library/templates/tasks/helm-docs.yaml index 0b6d86c9..562fc364 100644 --- a/charts/pipelines-library/templates/tasks/helm-docs.yaml +++ b/charts/pipelines-library/templates/tasks/helm-docs.yaml @@ -21,7 +21,7 @@ spec: default: "." - name: helm_docs_image description: "Specify a specific helm-docs image" - default: "jnorwood/helm-docs:v1.13.1" + default: "{{ include "edp-tekton.registry" . }}/jnorwood/helm-docs:v1.13.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user @@ -49,7 +49,7 @@ spec: helm-docs --chart-search-root ${CHART_DIR} - name: validate-helm-docs - image: bitnami/git:2.41.0 + image: {{ include "edp-tekton.registry" . }}/bitnami/git:2.41.0 workingDir: $(workspaces.source.path) env: - name: CHART_DIR diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-dependency-update-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-dependency-update-lib.yaml index ec498b0d..d4be44f1 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-dependency-update-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-dependency-update-lib.yaml @@ -24,7 +24,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ include "edp-tekton.registry" . }}/alpine/helm:3.11.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-docs-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-docs-lib.yaml index 30a5d173..ea709fd4 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-docs-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-docs-lib.yaml @@ -21,7 +21,7 @@ spec: default: "." - name: helm_docs_image description: "Specify a specific helm-docs image" - default: "jnorwood/helm-docs:v1.13.1" + default: "{{ include "edp-tekton.registry" . }}/jnorwood/helm-docs:v1.13.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-lint-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-lint-lib.yaml index c4c643f0..f750d406 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-lint-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-lint-lib.yaml @@ -22,7 +22,7 @@ spec: params: - name: BASE_IMAGE description: The base image for the task. - default: quay.io/helmpack/chart-testing:v3.10.1 + default: {{ include "edp-tekton.registry" . }}/helmpack/chart-testing:v3.10.1 type: string - name: EXTRA_COMMANDS description: Arguments to add to the helm-lint step diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml index cc36100e..a3d6b131 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml @@ -23,7 +23,7 @@ spec: default: "." steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ include "edp-tekton.registry" . }}/amazon/aws-cli:2.7.35 workingDir: $(workspaces.source.path) env: - name: AWS_DEFAULT_REGION @@ -62,7 +62,7 @@ spec: fi - name: push-helm-chart - image: alpine/k8s:1.25.15 + image: {{ include "edp-tekton.registry" . }}/alpine/k8s:1.25.15 workingDir: $(workspaces.source.path) env: - name: CHART_DIR diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-template-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-template-lib.yaml index 347b0f80..64269820 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-template-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-template-lib.yaml @@ -30,7 +30,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ include "edp-tekton.registry" . }}/alpine/helm:3.11.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user diff --git a/charts/pipelines-library/templates/tasks/helm-push.yaml b/charts/pipelines-library/templates/tasks/helm-push.yaml index e1cf01bc..7e49eb36 100644 --- a/charts/pipelines-library/templates/tasks/helm-push.yaml +++ b/charts/pipelines-library/templates/tasks/helm-push.yaml @@ -24,7 +24,7 @@ spec: default: "." steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ include "edp-tekton.registry" . }}/amazon/aws-cli:2.7.35 workingDir: $(workspaces.source.path) env: - name: AWS_DEFAULT_REGION @@ -54,7 +54,7 @@ spec: fi - name: push-helm-chart - image: alpine/k8s:1.25.15 + image: {{ include "edp-tekton.registry" . }}/alpine/k8s:1.25.15 workingDir: $(workspaces.source.path) env: - name: IMAGE_TAG diff --git a/charts/pipelines-library/templates/tasks/helm-template.yaml b/charts/pipelines-library/templates/tasks/helm-template.yaml index 1f42e268..7cf339e5 100644 --- a/charts/pipelines-library/templates/tasks/helm-template.yaml +++ b/charts/pipelines-library/templates/tasks/helm-template.yaml @@ -30,7 +30,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ include "edp-tekton.registry" . }}/alpine/helm:3.11.1" - name: user_home description: | Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user diff --git a/charts/pipelines-library/templates/tasks/image-scan.yaml b/charts/pipelines-library/templates/tasks/image-scan.yaml index 0dbd61f6..f91889a6 100644 --- a/charts/pipelines-library/templates/tasks/image-scan.yaml +++ b/charts/pipelines-library/templates/tasks/image-scan.yaml @@ -21,13 +21,13 @@ spec: description: Name (reference) of the image tar package. - name: BASE_IMAGE_TRIVY type: string - default: "aquasec/trivy:0.41.0" + default: "{{ include "edp-tekton.registry" . }}/aquasec/trivy:0.41.0" - name: BASE_IMAGE_GRYPE type: string default: "anchore/grype:v0.62.1-debug" - name: BASE_IMAGE_CURL type: string - default: "alpine/curl:3.14" + default: "{{ include "edp-tekton.registry" . }}/alpine/curl:3.14" - name: PATH_CONTEXT description: The build context used by Trivy. default: "." diff --git a/charts/pipelines-library/templates/tasks/init-values.yaml b/charts/pipelines-library/templates/tasks/init-values.yaml index af5faeeb..28fa3dae 100644 --- a/charts/pipelines-library/templates/tasks/init-values.yaml +++ b/charts/pipelines-library/templates/tasks/init-values.yaml @@ -17,7 +17,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ include "edp-tekton.registry" . }}/bitnami/kubectl:1.25.2 results: - name: TENANT_NAME description: "edp name" diff --git a/charts/pipelines-library/templates/tasks/kaniko.yaml b/charts/pipelines-library/templates/tasks/kaniko.yaml index 9aa2212f..86dc515a 100644 --- a/charts/pipelines-library/templates/tasks/kaniko.yaml +++ b/charts/pipelines-library/templates/tasks/kaniko.yaml @@ -51,7 +51,7 @@ spec: default: ./ - name: builder-image description: The image on which builds will run - default: {{ .Values.kaniko.image.repository }}:{{ .Values.kaniko.image.tag }}-debug + default: {{ .Values.kaniko.image.repository }}:{{ .Values.tag }}-debug results: - name: IMAGE_DIGEST description: Digest of the image just built. @@ -59,7 +59,7 @@ spec: description: URL of the image just built. steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ include "edp-tekton.registry" . }}/amazon/aws-cli:2.7.35 env: - name: CODEBASE_NAME value: "$(params.codebase-name)" @@ -148,7 +148,7 @@ spec: mountPath: /kaniko/.custom-certs {{- end }} {{- include "resources" . | nindent 6 }} - - image: alpine:3.18.9 + - image: {{ include "edp-tekton.registry" . }}/alpine:3.18.9 name: write-url env: - name: CODEBASE_NAME diff --git a/charts/pipelines-library/templates/tasks/maven-get-module.yaml b/charts/pipelines-library/templates/tasks/maven-get-module.yaml index c2395ce4..aa055999 100644 --- a/charts/pipelines-library/templates/tasks/maven-get-module.yaml +++ b/charts/pipelines-library/templates/tasks/maven-get-module.yaml @@ -11,7 +11,7 @@ spec: params: - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ include "edp-tekton.registry" . }}/alpine:3.18.9" results: - name: DEPLOYABLE_MODULE_DIR description: Maven deployable multimodule directory. diff --git a/charts/pipelines-library/templates/tasks/maven.yaml b/charts/pipelines-library/templates/tasks/maven.yaml index e1beacb3..261caf23 100644 --- a/charts/pipelines-library/templates/tasks/maven.yaml +++ b/charts/pipelines-library/templates/tasks/maven.yaml @@ -24,7 +24,7 @@ spec: - name: MAVEN_IMAGE type: string description: Maven base image - default: maven:3.9.0-eclipse-temurin-11 + default: {{ include "edp-tekton.registry" . }}/maven:3.9.0-eclipse-temurin-11 - name: GOALS description: maven goals to run type: array diff --git a/charts/pipelines-library/templates/tasks/npm.yaml b/charts/pipelines-library/templates/tasks/npm.yaml index 0a6209ad..27f6b5a8 100644 --- a/charts/pipelines-library/templates/tasks/npm.yaml +++ b/charts/pipelines-library/templates/tasks/npm.yaml @@ -29,7 +29,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "docker.io/library/node:18.20.3-alpine3.20" + default: "{{ include "edp-tekton.registry" . }}/library/node:18.20.3-alpine3.20" description: The node image you want to use. - name: ci-nexus type: string diff --git a/charts/pipelines-library/templates/tasks/opa.yaml b/charts/pipelines-library/templates/tasks/opa.yaml index fc0ae2de..48efc557 100644 --- a/charts/pipelines-library/templates/tasks/opa.yaml +++ b/charts/pipelines-library/templates/tasks/opa.yaml @@ -29,7 +29,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "openpolicyagent/opa:0.45.0-debug" + default: "{{ include "edp-tekton.registry" . }}/openpolicyagent/opa:0.45.0-debug" description: The opa image. steps: - name: opa-results-json @@ -43,7 +43,7 @@ spec: set -e opa test --bundle ./ --format json > "${OPA_RESULTS}" cat "${OPA_RESULTS}" - - image: curlimages/curl:7.85.0 + - image: {{ include "edp-tekton.registry" . }}/curlimages/curl:7.85.0 name: download-converter workingDir: $(workspaces.source.path)/$(params.PROJECT_DIR) env: @@ -55,7 +55,7 @@ spec: -o "${JUNIT_SCRIPT}" cat "${JUNIT_SCRIPT}" - name: convert-to-xml - image: 'python:3.10.8-alpine3.16' + image: '{{ include "edp-tekton.registry" . }}/python:3.10.8-alpine3.16' workingDir: $(workspaces.source.path)/$(params.PROJECT_DIR) env: - name: OPA_RESULTS diff --git a/charts/pipelines-library/templates/tasks/promote-images.yaml b/charts/pipelines-library/templates/tasks/promote-images.yaml index 480c3f15..49aff706 100644 --- a/charts/pipelines-library/templates/tasks/promote-images.yaml +++ b/charts/pipelines-library/templates/tasks/promote-images.yaml @@ -8,7 +8,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: epamedp/tekton-cd-pipeline:0.1.2 + default: {{ include "edp-tekton.registry" . }}/epamedp/tekton-cd-pipeline:0.1.2 - name: APPLICATIONS_PAYLOAD description: | Applications payload in format: {"codebase1": {"imageTag": "version1", "customValues": true}, "codebase2": {"imageTag": "version2", "customValues": true}}. For example: {"demo": {"imageTag": "main-20240103-141431", "customValues": true}, "myapp": {"imageTag": "0.1.0-SNAPSHOT.1", "customValues": true}} diff --git a/charts/pipelines-library/templates/tasks/push-to-jira.yaml b/charts/pipelines-library/templates/tasks/push-to-jira.yaml index 724291ac..bc8eb84d 100644 --- a/charts/pipelines-library/templates/tasks/push-to-jira.yaml +++ b/charts/pipelines-library/templates/tasks/push-to-jira.yaml @@ -31,7 +31,7 @@ spec: type: string steps: - name: push-to-jira - image: epamedp/tekton-autotest:0.1.3 + image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 env: - name: GIT_URL value: $(params.GIT_URL) diff --git a/charts/pipelines-library/templates/tasks/python.yaml b/charts/pipelines-library/templates/tasks/python.yaml index eb39b88d..b9d7f208 100644 --- a/charts/pipelines-library/templates/tasks/python.yaml +++ b/charts/pipelines-library/templates/tasks/python.yaml @@ -36,7 +36,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "python:3.8-slim" + default: "{{ include "edp-tekton.registry" . }}/python:3.8-slim" description: The python image you want to use. - name: ci-nexus type: string diff --git a/charts/pipelines-library/templates/tasks/save-cache.yaml b/charts/pipelines-library/templates/tasks/save-cache.yaml index 660784d0..3c5451ad 100644 --- a/charts/pipelines-library/templates/tasks/save-cache.yaml +++ b/charts/pipelines-library/templates/tasks/save-cache.yaml @@ -21,7 +21,7 @@ spec: type: string - name: BASE_IMAGE description: "Base image" - default: "epamedp/tekton-autotest:0.1.6" + default: "{{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.6" type: string steps: - name: save-cache diff --git a/charts/pipelines-library/templates/tasks/security.yaml b/charts/pipelines-library/templates/tasks/security.yaml index dd7d91f3..63510a39 100644 --- a/charts/pipelines-library/templates/tasks/security.yaml +++ b/charts/pipelines-library/templates/tasks/security.yaml @@ -19,7 +19,7 @@ spec: - name: BASE_IMAGE type: string description: Semgrep image - default: returntocorp/semgrep:1.58.0 + default: {{ include "edp-tekton.registry" . }}/returntocorp/semgrep:1.58.0 - name: ci-defectdojo type: string description: name of the secret holding the DefectDojo CI integration data diff --git a/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml b/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml index f95f5901..bc250ec5 100644 --- a/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml +++ b/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml @@ -20,7 +20,7 @@ spec: description: The message to notify about steps: - name: post - image: docker.io/curlimages/curl:7.70.0@sha256:031df77a11e5edded840bc761a845eab6e3c2edee22669fb8ad6d59484b6a1c4 + image: {{ include "edp-tekton.registry" . }}/curlimages/curl:7.70.0@sha256:031df77a11e5edded840bc761a845eab6e3c2edee22669fb8ad6d59484b6a1c4 script: | #!/usr/bin/env sh MESSAGE=$(echo "${MESSAGE}" | sed -e 's/\"/\\\\"/g') diff --git a/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml b/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml index 1a61e270..b3c409e7 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml @@ -53,7 +53,7 @@ spec: - name: BASE_IMAGE description: DotNet base image. type: string - default: "epamedp/tekton-dotnet:6.0.2" + default: "{{ include "edp-tekton.registry" . }}/epamedp/tekton-dotnet:6.0.2" - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -61,7 +61,7 @@ spec: - name: EXTRA_COMMANDS type: string steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 name: prepare-project workingDir: $(workspaces.source.path) env: diff --git a/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml b/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml index 7ffcbcdd..bcf3c57a 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml @@ -51,7 +51,7 @@ spec: description: Change number from Merge Request default: "" steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 name: prepare-project workingDir: $(workspaces.source.path) env: @@ -164,7 +164,7 @@ spec: echo "---------------------------" cat $(workspaces.source.path)/sonar-project.properties - - image: sonarsource/sonar-scanner-cli:5.0.1 + - image: {{ include "edp-tekton.registry" . }}/sonarsource/sonar-scanner-cli:5.0.1 name: sonar-scanner workingDir: $(workspaces.source.path) env: diff --git a/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml b/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml index decc756f..dcf02cc5 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml @@ -61,7 +61,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ include "edp-tekton.registry" . }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -69,7 +69,7 @@ spec: - name: EXTRA_COMMANDS type: string steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 name: prepare-project workingDir: $(workspaces.source.path) env: diff --git a/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml b/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml index a10f2240..fb771e3c 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml @@ -67,14 +67,14 @@ spec: - name: MAVEN_IMAGE type: string description: Maven base image - default: maven:3.9.0-eclipse-temurin-11 + default: {{ include "edp-tekton.registry" . }}/maven:3.9.0-eclipse-temurin-11 - name: EXTRA_COMMANDS description: maven goals to run type: array default: - "package" steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ include "edp-tekton.registry" . }}/epamedp/tekton-autotest:0.1.3 name: prepare-project workingDir: $(workspaces.source.path) env: diff --git a/charts/pipelines-library/templates/tasks/terraform-check.yaml b/charts/pipelines-library/templates/tasks/terraform-check.yaml index 97547e61..17aaa34d 100644 --- a/charts/pipelines-library/templates/tasks/terraform-check.yaml +++ b/charts/pipelines-library/templates/tasks/terraform-check.yaml @@ -23,7 +23,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: epamedp/tekton-pre-commit:0.1.7 + default: {{ include "edp-tekton.registry" . }}/epamedp/tekton-pre-commit:0.1.7 description: The terraform-check image. steps: - name: terraform diff --git a/charts/pipelines-library/templates/tasks/terraform.yaml b/charts/pipelines-library/templates/tasks/terraform.yaml index bb6da49f..56a4766f 100644 --- a/charts/pipelines-library/templates/tasks/terraform.yaml +++ b/charts/pipelines-library/templates/tasks/terraform.yaml @@ -23,7 +23,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: epamedp/tekton-tfenv:0.1.4 + default: {{ include "edp-tekton.registry" . }}/epamedp/tekton-tfenv:0.1.4 description: The tfenv image. - name: TFENV_TERRAFORM_VERSION type: string diff --git a/charts/pipelines-library/templates/tasks/trivy-scan.yaml b/charts/pipelines-library/templates/tasks/trivy-scan.yaml index 6088cfe2..7b2b9d76 100644 --- a/charts/pipelines-library/templates/tasks/trivy-scan.yaml +++ b/charts/pipelines-library/templates/tasks/trivy-scan.yaml @@ -21,7 +21,7 @@ spec: - name: BASE_IMAGE type: string description: Semgrep image - default: "aquasec/trivy:0.41.0" + default: "{{ include "edp-tekton.registry" . }}/aquasec/trivy:0.41.0" - name: targetImage type: string default: "" diff --git a/charts/pipelines-library/templates/tasks/update-cbb.yaml b/charts/pipelines-library/templates/tasks/update-cbb.yaml index c07f7701..95635ce0 100644 --- a/charts/pipelines-library/templates/tasks/update-cbb.yaml +++ b/charts/pipelines-library/templates/tasks/update-cbb.yaml @@ -16,7 +16,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ include "edp-tekton.registry" . }}/bitnami/kubectl:1.25.2 steps: - name: update-cbis image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/templates/tasks/update-cbis.yaml b/charts/pipelines-library/templates/tasks/update-cbis.yaml index c525402e..ebef1642 100644 --- a/charts/pipelines-library/templates/tasks/update-cbis.yaml +++ b/charts/pipelines-library/templates/tasks/update-cbis.yaml @@ -15,7 +15,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ include "edp-tekton.registry" . }}/bitnami/kubectl:1.25.2 steps: - name: update-cbis image: $(params.BASE_IMAGE) diff --git a/charts/pipelines-library/values.yaml b/charts/pipelines-library/values.yaml index 05364a03..8f9fdc1e 100644 --- a/charts/pipelines-library/values.yaml +++ b/charts/pipelines-library/values.yaml @@ -5,6 +5,11 @@ nameOverride: "" fullnameOverride: "" +pipelines: + image: + # -- Registry for tekton pipelines images. Default: docker.io + registry: "docker.io" + global: # By defining gitProviders you install the corresponding Kubernetes resources for the selected Git Provider: # Pipelines, EventListener, Tasks, etc. @@ -143,9 +148,9 @@ tekton: cpu: "500m" memory: "1Gi" -# Deploy EDP Tekton Interceptor along with pipelines library +# Deploy KubeRocketCI Tekton Interceptor along with pipelines library interceptor: - # -- Deploy EDP interceptor as a part of pipeline library when true. Default: true + # -- Deploy KubeRocketCI interceptor as a part of pipeline library when true. Default: true enabled: true nameOverride: "tekton-interceptor" @@ -341,7 +346,7 @@ dashboard: tls: [] # - secretName: chart-example-tls # hosts: - # - tekton-edp.example.com + # - tekton-krci.example.com # -- Node labels for pod assignment nodeSelector: {} diff --git a/charts/tekton-cache/README.md b/charts/tekton-cache/README.md index a7fdc115..301efb84 100644 --- a/charts/tekton-cache/README.md +++ b/charts/tekton-cache/README.md @@ -31,6 +31,7 @@ It leverages the power of Kubernetes/Tekton to cache dependencies and build outp | cacheSize | string | `"5Gi"` | Defines size of the Persistent Volume that is used for cache. | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | Defines the policy with which pod will request its image. | +| image.registry | string | `"docker.io"` | Set the image registry, default to Docker Hub; can be customized to use an alternative provider | | image.repository | string | `"epamedp/tekton-cache"` | Tekton-cache container image. | | image.tag | string | `"0.1.2"` | Overrides the image tag whose default is the chart appVersion. | | imagePullSecrets | list | `[]` | Specifies secrets for pulling Docker images. | diff --git a/charts/tekton-cache/values.yaml b/charts/tekton-cache/values.yaml index b162ffcd..7837ef53 100644 --- a/charts/tekton-cache/values.yaml +++ b/charts/tekton-cache/values.yaml @@ -4,6 +4,8 @@ # Tekton-cache container image configurations. image: + # -- Set the image registry, default to Docker Hub; can be customized to use an alternative provider + registry: "docker.io" # -- Tekton-cache container image. repository: epamedp/tekton-cache # -- Defines the policy with which pod will request its image.