This commit is contained in:
2024-04-23 16:22:12 +02:00
parent ad137bfdb0
commit fae6b2acc0
4 changed files with 4 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ spec:
script: |-
#!/usr/bin/env bash
. ${TEMPLATE_ROOT}/functions.sh
cleanup
git_prepare "$(params.deploy-url)" "Auto CD" "autocd@$(params.domain-name)"
install_base
create_prj

View File

@@ -53,6 +53,7 @@ spec:
script: |-
#!/usr/bin/env bash
. ${TEMPLATE_ROOT}/functions.sh
cleanup
git_prepare "$(params.deploy-url)" "Auto CD" "autocd@$(params.domain-name)"
install_base
create_prj

View File

@@ -53,6 +53,7 @@ spec:
script: |-
#!/usr/bin/env bash
. ${TEMPLATE_ROOT}/functions.sh
cleanup
git_prepare "$(params.deploy-url)" "Auto CD" "autocd@$(params.domain-name)"
delete_prj
git_push "Removing $(params.project-name)"

View File

@@ -29,7 +29,7 @@ data:
fi
}
cleanup() {
rm -rf . || true
rm -rf .* * || true
}
git_prepare() {
local url=$1 username=$2 email=$3