2 Commits

Author SHA1 Message Date
a44bf142ba Corrected name for ssk private key file 2025-08-01 00:20:06 +02:00
3fb4ffd621 Added new secrets to secret store 2025-08-01 00:19:06 +02:00
2 changed files with 7 additions and 6 deletions

View File

@ -136,8 +136,8 @@ spec:
cp /mnt/secrets/gitea-known-host ~/.ssh/known_hosts cp /mnt/secrets/gitea-known-host ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
cp /mnt/secrets/gitea-deploy-key ~/.ssh/id_rsa cp /mnt/secrets/gitea-deploy-key > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_ed25519
git config --global user.name "argo[bot]" git config --global user.name "argo[bot]"
git config --global user.email "argo@marcin00.pl" git config --global user.email "argo@marcin00.pl"
@ -145,7 +145,6 @@ spec:
git clone --depth 1 --branch $DEPLOY_REPO_BRANCH --single-branch $DEPLOY_REPO_URL repo git clone --depth 1 --branch $DEPLOY_REPO_BRANCH --single-branch $DEPLOY_REPO_URL repo
cd repo cd repo
|
awk -v commit="$CI_COMMIT_SHA" ' awk -v commit="$CI_COMMIT_SHA" '
$0 ~ /name:[[:space:]]*api/ { in_api_container = 1; print; next } $0 ~ /name:[[:space:]]*api/ { in_api_container = 1; print; next }
in_api_container && $0 ~ /^[[:space:]]*image:[[:space:]]*/ { in_api_container && $0 ~ /^[[:space:]]*image:[[:space:]]*/ {

View File

@ -6,11 +6,13 @@ metadata:
spec: spec:
provider: azure provider: azure
secretObjects: secretObjects:
- secretName: acr-creds - secretName: gitea-secrets
type: Opaque type: Opaque
data: data:
- objectName: acr-password - objectName: gitea-known-host
- key: password key: GITEA_KNOWN_HOST
- objectName: gitea-deploy-key
key: GITEA_DEPLOY_KEY
parameters: parameters:
usePodIdentity: "false" usePodIdentity: "false"
useVMManagedIdentity: "true" useVMManagedIdentity: "true"