init
This commit is contained in:
parent
871b18818d
commit
d2aca7883e
@ -14,6 +14,11 @@ spec:
|
||||
to the corresponding GitOps repository derived from the application source repo.
|
||||
|
||||
params:
|
||||
- name: home
|
||||
type: string
|
||||
default: ""
|
||||
description: home directory
|
||||
|
||||
- name: repositoryUrl
|
||||
type: string
|
||||
description: Source repository URL (used to derive GitOps repo)
|
||||
@ -36,23 +41,8 @@ spec:
|
||||
default: "chore(gitops): update image tag"
|
||||
description: Commit message
|
||||
|
||||
- name: home
|
||||
type: string
|
||||
default: ""
|
||||
description: home directory
|
||||
|
||||
workspaces:
|
||||
# - name: ssh-directory
|
||||
# optional: true
|
||||
# description: SSH credentials (private key, known_hosts)
|
||||
|
||||
# - name: basic-auth
|
||||
# optional: true
|
||||
# description: .gitconfig and .git-credentials
|
||||
|
||||
# - name: ssl-ca-directory
|
||||
# optional: true
|
||||
# description: Custom CA certificates (optional)
|
||||
- shared
|
||||
|
||||
steps:
|
||||
- name: update-and-push
|
||||
@ -65,20 +55,6 @@ spec:
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# echo "🔐 Preparing Git authentication..."
|
||||
# mkdir -p /root/.ssh
|
||||
# if [ -d /workspace/ssh-directory ]; then
|
||||
# cp -R /workspace/ssh-directory/* /root/.ssh/
|
||||
# chmod 700 /root/.ssh
|
||||
# fi
|
||||
# if [ -d /workspace/basic-auth ]; then
|
||||
# cp /workspace/basic-auth/.gitconfig /root/.gitconfig || true
|
||||
# cp /workspace/basic-auth/.git-credentials /root/.git-credentials || true
|
||||
# fi
|
||||
# if [ -d /workspace/ssl-ca-directory ]; then
|
||||
# export GIT_SSL_CAINFO="/workspace/ssl-ca-directory/ca.crt"
|
||||
# fi
|
||||
|
||||
echo "📦 Installing Git + yq..."
|
||||
apk add --no-cache git yq openssh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user