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.
|
to the corresponding GitOps repository derived from the application source repo.
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
- name: home
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
description: home directory
|
||||||
|
|
||||||
- name: repositoryUrl
|
- name: repositoryUrl
|
||||||
type: string
|
type: string
|
||||||
description: Source repository URL (used to derive GitOps repo)
|
description: Source repository URL (used to derive GitOps repo)
|
||||||
@ -36,23 +41,8 @@ spec:
|
|||||||
default: "chore(gitops): update image tag"
|
default: "chore(gitops): update image tag"
|
||||||
description: Commit message
|
description: Commit message
|
||||||
|
|
||||||
- name: home
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
description: home directory
|
|
||||||
|
|
||||||
workspaces:
|
workspaces:
|
||||||
# - name: ssh-directory
|
- shared
|
||||||
# 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)
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: update-and-push
|
- name: update-and-push
|
||||||
@ -65,20 +55,6 @@ spec:
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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..."
|
echo "📦 Installing Git + yq..."
|
||||||
apk add --no-cache git yq openssh
|
apk add --no-cache git yq openssh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user