From d2aca7883e4c863cd3b852634e6955e2898ebe18 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Wed, 16 Apr 2025 01:18:31 +0000 Subject: [PATCH] init --- tasks/git-gitops-sync/task.yaml | 36 ++++++--------------------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/tasks/git-gitops-sync/task.yaml b/tasks/git-gitops-sync/task.yaml index aebee5a..ca6ccb0 100644 --- a/tasks/git-gitops-sync/task.yaml +++ b/tasks/git-gitops-sync/task.yaml @@ -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