fix
This commit is contained in:
@@ -120,6 +120,9 @@ resource "kubectl_manifest" "Task_auto-cd-create" {
|
|||||||
- name: stages
|
- name: stages
|
||||||
type: array
|
type: array
|
||||||
default: ${jsonencode(var.stages)}
|
default: ${jsonencode(var.stages)}
|
||||||
|
- name: known-repos
|
||||||
|
type: array
|
||||||
|
default: ${jsonencode(var.known_repos)}
|
||||||
- name: artifactory-url
|
- name: artifactory-url
|
||||||
description: The url of the current artifactory
|
description: The url of the current artifactory
|
||||||
- name: project-name
|
- name: project-name
|
||||||
@@ -166,6 +169,11 @@ resource "kubectl_manifest" "Task_auto-cd-create" {
|
|||||||
git_prepare "$(params.deploy-url)" "Auto CD" "autocd@$(params.domain-name)"
|
git_prepare "$(params.deploy-url)" "Auto CD" "autocd@$(params.domain-name)"
|
||||||
install_base
|
install_base
|
||||||
create_prj "$@"
|
create_prj "$@"
|
||||||
|
STAGES="$@"
|
||||||
|
echo "$(params.known-repos[*])"
|
||||||
|
for PROJECT_NAME in $(params.known-repos[*]);do
|
||||||
|
create_prj $STAGES
|
||||||
|
done
|
||||||
git_push "Adding $(params.project-name)"
|
git_push "Adding $(params.project-name)"
|
||||||
cleanup
|
cleanup
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
|
known_repos:
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
organization:
|
organization:
|
||||||
default: your-org
|
default: your-org
|
||||||
examples:
|
examples:
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ resource "kubectl_manifest" "tekton" {
|
|||||||
stages: ${jsonencode(local.sorted-stage-name)}
|
stages: ${jsonencode(local.sorted-stage-name)}
|
||||||
haveFlux: ${jsonencode(var.haveFlux)}
|
haveFlux: ${jsonencode(var.haveFlux)}
|
||||||
autoCD: ${jsonencode(var.autoCD)}
|
autoCD: ${jsonencode(var.autoCD)}
|
||||||
|
known_repos: ${jsonencode(var.conditions.repos)}
|
||||||
gitea_ssh_prefix: ${jsonencode(var.gitea_ssh_prefix)}
|
gitea_ssh_prefix: ${jsonencode(var.gitea_ssh_prefix)}
|
||||||
gitea_ssh_port: ${jsonencode(var.gitea_ssh_port)}
|
gitea_ssh_port: ${jsonencode(var.gitea_ssh_port)}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user