Compare commits
2 Commits
9659af1c9a
...
a44bf142ba
Author | SHA1 | Date | |
---|---|---|---|
a44bf142ba | |||
3fb4ffd621 |
@ -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:]]*/ {
|
||||||
|
@ -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"
|
||||||
|
Reference in New Issue
Block a user