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/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..e6b0d402 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,8 +1,18 @@ {{ 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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 kind: Pipeline metadata: 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..ea549bee 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..a3d35451 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..040cea69 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..e888bdc8 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..af053f80 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..d2ebbf59 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..cb3ca807 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..4eda4432 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..0bff6f6e 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..0a06e3be 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..7117f9b5 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..046adc0a 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..6e55c314 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..ad9a77fe 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..839e6069 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..317138ab 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..e713d828 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..472f5c41 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..dd43a6e3 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..2eae860f 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..ab207afe 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..4f49c701 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..680bd545 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..9da5c764 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 @@ -1,4 +1,5 @@ {{ if has "bitbucket" .Values.global.gitProviders }} +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} 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-build-edp.yaml b/charts/pipelines-library/templates/pipelines/c/cmake/bitbucket-build-edp.yaml index b4eeb3cb..6c101bea 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..0225028c 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..bdf22b65 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..835af5fa 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..b76a1f2a 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..0a6798ec 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..bbd2c7a6 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..8fda99ab 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..362700af 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..e3c632f9 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..17526a98 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..e4eb882a 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..674264c8 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..c33e435c 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..11eb0180 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..8abc3c24 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..2e8160ad 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..56de6302 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..dbb8c349 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..3019ea87 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..a93ea790 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..b45fb334 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..96625509 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..85b97c02 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..19a3223a 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..4c97c797 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..5a313f55 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..20a1f5c9 100644 --- a/charts/pipelines-library/templates/pipelines/cd/deploy.yaml +++ b/charts/pipelines-library/templates/pipelines/cd/deploy.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} 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..43d14f9d 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..29f3bc78 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..b9bc0465 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..73336baf 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..b2332a4d 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..f9ba1c8a 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..48ebba49 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..42fb34fa 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..a439f973 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..99da3831 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..8de747d5 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..eff561ee 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..cc9abada 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..ccf55722 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..1fde3dab 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..35e3f2fe 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..06722438 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..54705bed 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..3d76a143 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..dfac2bbc 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..14edfe87 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..7527f805 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..990331ec 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..9221b517 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..ca94807d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..32415da6 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..883cd373 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..1778cd3a 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..c61d9dea 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bfdb83de 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..e1402326 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..a65af419 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..fd2710ef 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..6d502808 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..8c936998 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..42439e43 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..1d4da48b 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..12d09b9f 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..82a05b09 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..0b358b63 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bda57e7f 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..b7d4e98e 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..3f6424bf 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..1b8e0dae 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..39739e91 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..1e03d955 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bf796797 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..d5381875 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..e9ef7fa0 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..8759a98e 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..3e131ce3 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..a2ce9ec4 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..4546eed6 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..5843514c 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..8260b775 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..6cad0165 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..a5fedd29 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..8870db52 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..eb5cf579 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..163f441c 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..c8636a1d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..c7cc00b5 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..5870bf40 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..153af34d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..49235dc9 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..0270a1ab 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..cd58bb9d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..218197ce 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..f96859c0 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..882e5e63 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bb431164 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..f58d7c4d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..c460532e 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..aa2e373f 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..24f43cbb 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..43fb5b24 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..02ca67f7 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..a9a1f754 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bcf7d839 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..9fcb5926 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..265aa742 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..d2ffa80d 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..ab3da00a 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..f48a465b 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..4e073480 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..222f25ef 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..ebd0cf70 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..bb72b967 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..0a6915d6 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..7b8ed2b1 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..b5b38860 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..eba9e2a8 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..09e41b41 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..d1aa0a6e 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..71c8ec5b 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..e6f09135 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..d84a05ad 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..4c1f1108 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..906f6fbd 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..d8a5830c 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..c9755231 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..1395eb1b 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..d94b7683 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..9f7fa7da 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..0c4fa4be 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..8bf5e430 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..14528de9 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..d986fedb 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..847b8d15 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..0521eb26 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..8a33ee12 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..56fa3466 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..1ed7f45c 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..c6cc8a9f 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..d4e6a10d 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..34aa0469 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..2633b637 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..e469d83b 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..5ef7f4fc 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..0cafa8b5 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..f755a763 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..f76d4b92 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..4f8522c9 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..bd57eaba 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..5d02061c 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..4147e699 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..372feb74 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..2bdc67d8 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 := .Values.pipelines.image.registry | default "docker.io" -}} {{- $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..ab4ae6ca 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..6817c46d 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..67ddd573 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..5f0dad4d 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..9c2d94d1 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..dba56761 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..7813ef2c 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..935b5c93 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..5f90a54b 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..a142c288 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..02adc62a 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..c61b94d5 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..6e609dd1 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..50eb4565 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..66f9cbdb 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..9e92e957 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..14f9d1a6 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..c43807c2 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 := .Values.pipelines.image.registry | default "docker.io" -}} 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..dda7e002 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..7d4a9085 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..3f5a8bcb 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..defb67d5 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..d2e35051 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..2cdd23b3 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..47e562e5 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..bcabe3c6 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..49022897 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..581e0a94 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..8783cce3 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..4fe442e2 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 := .Values.pipelines.image.registry | default "docker.io" -}} +{{- $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..3629cc8c 100644 --- a/charts/pipelines-library/templates/tasks/ansible.yaml +++ b/charts/pipelines-library/templates/tasks/ansible.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: pipelinecomponents/ansible-lint:0.72.0 + default: {{ $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..36b38012 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -30,7 +31,7 @@ spec: type: string steps: - name: init-autotest - image: epamedp/tekton-autotest:0.1.3 + image: {{ $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..40fe8f0c 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -13,7 +14,7 @@ spec: default: 'autotes-pipeline' steps: - name: wait-for - image: epamedp/tekton-autotest:0.1.3 + image: {{ $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..bb2f8139 100644 --- a/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml +++ b/charts/pipelines-library/templates/tasks/autotests/TestsMavenAutotest.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -27,7 +28,7 @@ spec: type: string steps: - name: check-run-json-file - image: "python:3.9.14-alpine3.16" + image: "{{ $registry }}/python:3.9.14-alpine3.16" workingDir: $(workspaces.source.path) script: | set -ex @@ -40,7 +41,7 @@ spec: fi - name: get-command - image: "python:3.10.1-alpine3.15" + image: "{{ $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..2355ac08 100644 --- a/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml +++ b/charts/pipelines-library/templates/tasks/bitbucket-set-status.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -78,7 +79,7 @@ spec: description: | Image providing the python binary which this task uses. type: string - default: python:3.10.1-alpine3.15 + default: {{ $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..c957b233 100644 --- a/charts/pipelines-library/templates/tasks/cd/clean.yaml +++ b/charts/pipelines-library/templates/tasks/cd/clean.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -17,7 +18,7 @@ spec: steps: - name: clean-argo-app - image: epamedp/tekton-cd-pipeline:0.1.2 + image: {{ $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..1dd8c547 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-ansible-awx.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -26,7 +27,7 @@ spec: type: string steps: - name: deploy-ansible-awx - image: epamedp/tekton-ansible:0.1.1 + image: {{ $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..22bc6087 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-ansible.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: steps: - name: run-ansible-script - image: epamedp/tekton-ansible:0.1.1 + image: {{ $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..a8d2806f 100644 --- a/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml +++ b/charts/pipelines-library/templates/tasks/cd/deploy-applicationset-cli.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -22,7 +23,7 @@ spec: steps: - name: wait-for-deploy - image: epamedp/tekton-cd-pipeline:0.1.2 + image: {{ $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..798411df 100644 --- a/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml +++ b/charts/pipelines-library/templates/tasks/check-helm-chart-name.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: value: $(params.codebase_name) - name: CHART_DIR value: $(params.chart_dir) - image: alpine:3.18.9 + image: {{ $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..7841e72c 100644 --- a/charts/pipelines-library/templates/tasks/codenarc.yaml +++ b/charts/pipelines-library/templates/tasks/codenarc.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -28,7 +29,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ $registry }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -78,7 +79,7 @@ spec: name: $(params.ci-nexus) key: url - name: codenarc-report - image: alpine:3.18.9 + image: {{ $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..610a6095 100644 --- a/charts/pipelines-library/templates/tasks/commit-validate.yaml +++ b/charts/pipelines-library/templates/tasks/commit-validate.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -17,7 +18,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: "{{ $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..2000f432 100644 --- a/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml +++ b/charts/pipelines-library/templates/tasks/create-ecr-repository.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: default: edp-config steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ $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..ddab0d5c 100644 --- a/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml +++ b/charts/pipelines-library/templates/tasks/ecr-to-docker.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -40,7 +41,7 @@ spec: description: this configmap holds aws_region parameter default: edp-config steps: - - image: amazon/aws-cli:2.7.35 + - image: {{ $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..972b60c6 100644 --- a/charts/pipelines-library/templates/tasks/edp-c.yaml +++ b/charts/pipelines-library/templates/tasks/edp-c.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: description: The directory containing source code. - name: BASE_IMAGE type: string - default: "epamedp/tekton-python-make:0.1.7" + default: "{{ $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..66fa23a7 100644 --- a/charts/pipelines-library/templates/tasks/edp-gradle.yaml +++ b/charts/pipelines-library/templates/tasks/edp-gradle.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ $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..14dc25b7 100644 --- a/charts/pipelines-library/templates/tasks/edp-npm.yaml +++ b/charts/pipelines-library/templates/tasks/edp-npm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -27,7 +28,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: "{{ $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..73c4faa6 100644 --- a/charts/pipelines-library/templates/tasks/edp-rpm.yaml +++ b/charts/pipelines-library/templates/tasks/edp-rpm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -22,7 +23,7 @@ spec: description: The path to the context. - name: BASE_IMAGE type: string - default: "docker.io/epamedp/tekton-rpm:0.1.4" + default: "{{ $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..cfb74423 100644 --- a/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml +++ b/charts/pipelines-library/templates/tasks/gerrit-ssh-cmd.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -50,7 +51,7 @@ spec: default: "/tekton/home" steps: - name: ssh - image: 'epamedp/tekton-openssh-client:0.1.5' + image: '{{ $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..0be79711 100644 --- a/charts/pipelines-library/templates/tasks/get-cache.yaml +++ b/charts/pipelines-library/templates/tasks/get-cache.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: type: string - name: BASE_IMAGE description: "Base image" - default: "epamedp/tekton-autotest:0.1.6" + default: "{{ $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..1503f9d7 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersion.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: description: Normalized version steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ $registry }}/alpine:3.18.9 script: | ts=$(date "+%Y%m%d-%H%M%S") nts=$(date "+%Y%m%d.%H%M%S") @@ -33,7 +34,7 @@ spec: echo ${nts} | tr -d "\n" | tee $(results.NORMALIZED_VERSION.path) - name: get-version - image: alpine:3.18.9 + image: {{ $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..ffd6e148 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionHelm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: description: "CodebaseImageStream tag" steps: - name: get-version - image: linuxserver/yq + image: {{ $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..7a61493c 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/GetVersionRPM.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -22,7 +23,7 @@ spec: description: Normalized version steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ $registry }}/alpine:3.18.9 script: | ts=$(date "+%Y%m%d-%H%M%S") nts=$(date "+%Y%m%d.%H%M%S") @@ -32,7 +33,7 @@ spec: echo ${nts} | tr -d "\n" | tee $(results.NORMALIZED_VERSION.path) - name: get-version - image: alpine/make:4.2.1 + image: {{ $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..2e87a632 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberDotnet.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,14 +25,14 @@ spec: description: Current timestamp steps: - name: get-timestamp - image: alpine:3.18.9 + image: {{ $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: {{ $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..297e25d8 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberGradle.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..602a1dc8 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberNpm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "node:18.9.0" + default: "{{ $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..9c8d611a 100644 --- a/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/defaulttype/UpdateBuildNumberPython.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..63219589 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/GetVersionEDP.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -28,7 +29,7 @@ spec: - name: DEPLOYABLE_MODULE_DIR steps: - name: get-version - image: bitnami/kubectl:1.25.2 + image: {{ $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..382dbff2 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberCsharp.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..6beec978 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberDotnet.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..2d440457 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberGradle.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -19,7 +20,7 @@ spec: type: string - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..d796c899 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberHelmChart.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -17,7 +18,7 @@ spec: default: "." - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..77f898fb 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberNpm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -17,7 +18,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "node:18.9.0" + default: "{{ $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..823e837d 100644 --- a/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml +++ b/charts/pipelines-library/templates/tasks/getversion/edptype/UpdateBuildNumberPython.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -14,7 +15,7 @@ spec: description: "Version" - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..c50d863c 100644 --- a/charts/pipelines-library/templates/tasks/git-cli.yaml +++ b/charts/pipelines-library/templates/tasks/git-cli.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -49,7 +50,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: {{ $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..5be7b680 100644 --- a/charts/pipelines-library/templates/tasks/github-set-status.yaml +++ b/charts/pipelines-library/templates/tasks/github-set-status.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -84,7 +85,7 @@ spec: description: | Image providing the python binary which this task uses. type: string - default: python:3.10.1-alpine3.15 + default: {{ $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..82f67026 100644 --- a/charts/pipelines-library/templates/tasks/go.yaml +++ b/charts/pipelines-library/templates/tasks/go.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -50,7 +51,7 @@ spec: default: "" - name: BASE_IMAGE description: "Base image" - default: "golang:1.22-bookworm" + default: "{{ $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..9c21d287 100644 --- a/charts/pipelines-library/templates/tasks/gradle.yaml +++ b/charts/pipelines-library/templates/tasks/gradle.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ $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..b46766a5 100644 --- a/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml +++ b/charts/pipelines-library/templates/tasks/helm-dependency-update.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ $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..34dc6eef 100644 --- a/charts/pipelines-library/templates/tasks/helm-docs.yaml +++ b/charts/pipelines-library/templates/tasks/helm-docs.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: default: "." - name: helm_docs_image description: "Specify a specific helm-docs image" - default: "jnorwood/helm-docs:v1.13.1" + default: "{{ $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 +50,7 @@ spec: helm-docs --chart-search-root ${CHART_DIR} - name: validate-helm-docs - image: bitnami/git:2.41.0 + image: {{ $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..c6290d2f 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ $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..16659e48 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: default: "." - name: helm_docs_image description: "Specify a specific helm-docs image" - default: "jnorwood/helm-docs:v1.13.1" + default: "{{ $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..df352af5 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "quay.io" -}} # Use quay.io as default apiVersion: tekton.dev/v1 kind: Task metadata: @@ -22,7 +23,7 @@ spec: params: - name: BASE_IMAGE description: The base image for the task. - default: quay.io/helmpack/chart-testing:v3.10.1 + default: {{ $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..13a021f2 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: default: "." steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ $registry }}/amazon/aws-cli:2.7.35 workingDir: $(workspaces.source.path) env: - name: AWS_DEFAULT_REGION @@ -62,7 +63,7 @@ spec: fi - name: push-helm-chart - image: alpine/k8s:1.25.15 + image: {{ $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..a0b81ad3 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 @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -30,7 +31,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ $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..a0379c90 100644 --- a/charts/pipelines-library/templates/tasks/helm-push.yaml +++ b/charts/pipelines-library/templates/tasks/helm-push.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: default: "." steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ $registry }}/amazon/aws-cli:2.7.35 workingDir: $(workspaces.source.path) env: - name: AWS_DEFAULT_REGION @@ -54,7 +55,7 @@ spec: fi - name: push-helm-chart - image: alpine/k8s:1.25.15 + image: {{ $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..c53fa4a2 100644 --- a/charts/pipelines-library/templates/tasks/helm-template.yaml +++ b/charts/pipelines-library/templates/tasks/helm-template.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -30,7 +31,7 @@ spec: default: "" - name: helm_image description: "Specify a specific helm image" - default: "alpine/helm:3.11.1" + default: "{{ $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..be9de9d1 100644 --- a/charts/pipelines-library/templates/tasks/image-scan.yaml +++ b/charts/pipelines-library/templates/tasks/image-scan.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,13 +22,13 @@ spec: description: Name (reference) of the image tar package. - name: BASE_IMAGE_TRIVY type: string - default: "aquasec/trivy:0.41.0" + default: "{{ $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: "{{ $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..b9fd9262 100644 --- a/charts/pipelines-library/templates/tasks/init-values.yaml +++ b/charts/pipelines-library/templates/tasks/init-values.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -17,7 +18,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ $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..1091d7d1 100644 --- a/charts/pipelines-library/templates/tasks/kaniko.yaml +++ b/charts/pipelines-library/templates/tasks/kaniko.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -51,7 +52,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 +60,7 @@ spec: description: URL of the image just built. steps: - name: init-repository - image: amazon/aws-cli:2.7.35 + image: {{ $registry }}/amazon/aws-cli:2.7.35 env: - name: CODEBASE_NAME value: "$(params.codebase-name)" @@ -148,7 +149,7 @@ spec: mountPath: /kaniko/.custom-certs {{- end }} {{- include "resources" . | nindent 6 }} - - image: alpine:3.18.9 + - image: {{ $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..00b244c5 100644 --- a/charts/pipelines-library/templates/tasks/maven-get-module.yaml +++ b/charts/pipelines-library/templates/tasks/maven-get-module.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -11,7 +12,7 @@ spec: params: - name: BASE_IMAGE description: "The base image for the task" - default: "alpine:3.18.9" + default: "{{ $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..16b7c237 100644 --- a/charts/pipelines-library/templates/tasks/maven.yaml +++ b/charts/pipelines-library/templates/tasks/maven.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -24,7 +25,7 @@ spec: - name: MAVEN_IMAGE type: string description: Maven base image - default: maven:3.9.0-eclipse-temurin-11 + default: {{ $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..954c7be7 100644 --- a/charts/pipelines-library/templates/tasks/npm.yaml +++ b/charts/pipelines-library/templates/tasks/npm.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -29,7 +30,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "docker.io/library/node:18.20.3-alpine3.20" + default: "{{ $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..3873a01c 100644 --- a/charts/pipelines-library/templates/tasks/opa.yaml +++ b/charts/pipelines-library/templates/tasks/opa.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -29,7 +30,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "openpolicyagent/opa:0.45.0-debug" + default: "{{ $registry }}/openpolicyagent/opa:0.45.0-debug" description: The opa image. steps: - name: opa-results-json @@ -43,7 +44,7 @@ spec: set -e opa test --bundle ./ --format json > "${OPA_RESULTS}" cat "${OPA_RESULTS}" - - image: curlimages/curl:7.85.0 + - image: {{ $registry }}/curlimages/curl:7.85.0 name: download-converter workingDir: $(workspaces.source.path)/$(params.PROJECT_DIR) env: @@ -55,7 +56,7 @@ spec: -o "${JUNIT_SCRIPT}" cat "${JUNIT_SCRIPT}" - name: convert-to-xml - image: 'python:3.10.8-alpine3.16' + image: '{{ $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..f3c8ccf9 100644 --- a/charts/pipelines-library/templates/tasks/promote-images.yaml +++ b/charts/pipelines-library/templates/tasks/promote-images.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -8,7 +9,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: epamedp/tekton-cd-pipeline:0.1.2 + default: {{ $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..30c0c041 100644 --- a/charts/pipelines-library/templates/tasks/push-to-jira.yaml +++ b/charts/pipelines-library/templates/tasks/push-to-jira.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -31,7 +32,7 @@ spec: type: string steps: - name: push-to-jira - image: epamedp/tekton-autotest:0.1.3 + image: {{ $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..9be83000 100644 --- a/charts/pipelines-library/templates/tasks/python.yaml +++ b/charts/pipelines-library/templates/tasks/python.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -36,7 +37,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: "python:3.8-slim" + default: "{{ $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..9c46740e 100644 --- a/charts/pipelines-library/templates/tasks/save-cache.yaml +++ b/charts/pipelines-library/templates/tasks/save-cache.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: type: string - name: BASE_IMAGE description: "Base image" - default: "epamedp/tekton-autotest:0.1.6" + default: "{{ $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..efe33303 100644 --- a/charts/pipelines-library/templates/tasks/security.yaml +++ b/charts/pipelines-library/templates/tasks/security.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -19,7 +20,7 @@ spec: - name: BASE_IMAGE type: string description: Semgrep image - default: returntocorp/semgrep:1.58.0 + default: {{ $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..9782021c 100644 --- a/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml +++ b/charts/pipelines-library/templates/tasks/send-to-microsoft-teams.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -20,7 +21,7 @@ spec: description: The message to notify about steps: - name: post - image: docker.io/curlimages/curl:7.70.0@sha256:031df77a11e5edded840bc761a845eab6e3c2edee22669fb8ad6d59484b6a1c4 + image: {{ $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..6725f533 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-dotnet.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -53,7 +54,7 @@ spec: - name: BASE_IMAGE description: DotNet base image. type: string - default: "epamedp/tekton-dotnet:6.0.2" + default: "{{ $registry }}/epamedp/tekton-dotnet:6.0.2" - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -61,7 +62,7 @@ spec: - name: EXTRA_COMMANDS type: string steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ $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..91dd5b7c 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-general.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -51,7 +52,7 @@ spec: description: Change number from Merge Request default: "" steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ $registry }}/epamedp/tekton-autotest:0.1.3 name: prepare-project workingDir: $(workspaces.source.path) env: @@ -164,7 +165,7 @@ spec: echo "---------------------------" cat $(workspaces.source.path)/sonar-project.properties - - image: sonarsource/sonar-scanner-cli:5.0.1 + - image: {{ $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..2b8e3cd6 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-gradle.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -61,7 +62,7 @@ spec: - name: BASE_IMAGE description: Gradle base image. type: string - default: gradle:7.5.1-jdk11 + default: {{ $registry }}/gradle:7.5.1-jdk11 - name: PROJECT_DIR description: The directory containing build.gradle type: string @@ -69,7 +70,7 @@ spec: - name: EXTRA_COMMANDS type: string steps: - - image: epamedp/tekton-autotest:0.1.3 + - image: {{ $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..959b8aaf 100644 --- a/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml +++ b/charts/pipelines-library/templates/tasks/sonar/sonarqube-maven.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -67,14 +68,14 @@ spec: - name: MAVEN_IMAGE type: string description: Maven base image - default: maven:3.9.0-eclipse-temurin-11 + default: {{ $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: {{ $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..8d214839 100644 --- a/charts/pipelines-library/templates/tasks/terraform-check.yaml +++ b/charts/pipelines-library/templates/tasks/terraform-check.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: epamedp/tekton-pre-commit:0.1.7 + default: {{ $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..7948b4e7 100644 --- a/charts/pipelines-library/templates/tasks/terraform.yaml +++ b/charts/pipelines-library/templates/tasks/terraform.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -23,7 +24,7 @@ spec: type: string - name: BASE_IMAGE type: string - default: epamedp/tekton-tfenv:0.1.4 + default: {{ $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..b1a11c60 100644 --- a/charts/pipelines-library/templates/tasks/trivy-scan.yaml +++ b/charts/pipelines-library/templates/tasks/trivy-scan.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -21,7 +22,7 @@ spec: - name: BASE_IMAGE type: string description: Semgrep image - default: "aquasec/trivy:0.41.0" + default: "{{ $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..e2e55086 100644 --- a/charts/pipelines-library/templates/tasks/update-cbb.yaml +++ b/charts/pipelines-library/templates/tasks/update-cbb.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -16,7 +17,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ $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..b2e03fd0 100644 --- a/charts/pipelines-library/templates/tasks/update-cbis.yaml +++ b/charts/pipelines-library/templates/tasks/update-cbis.yaml @@ -1,3 +1,4 @@ +{{- $registry := .Values.pipelines.image.registry | default "docker.io" -}} apiVersion: tekton.dev/v1 kind: Task metadata: @@ -15,7 +16,7 @@ spec: - name: BASE_IMAGE description: The base image for the task. type: string - default: bitnami/kubectl:1.25.2 + default: {{ $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.