Corrected some commands format
This commit is contained in:
@ -136,7 +136,7 @@ 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_ed25519
|
cp /mnt/secrets/gitea-deploy-key ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
git config --global user.name "argo[bot]"
|
git config --global user.name "argo[bot]"
|
||||||
@ -157,7 +157,7 @@ spec:
|
|||||||
' deploy.yaml > deploy.tmp && mv deploy.tmp deploy.yaml
|
' deploy.yaml > deploy.tmp && mv deploy.tmp deploy.yaml
|
||||||
|
|
||||||
git add deploy.yaml
|
git add deploy.yaml
|
||||||
'git diff-index --quiet HEAD || git commit -m "Argo: Changed deployed version to $CI_COMMIT_SHA"'
|
git diff-index --quiet HEAD || git commit -m "Argo: Changed deployed version to $CI_COMMIT_SHA"
|
||||||
git push origin $DEPLOY_REPO_BRANCH
|
git push origin $DEPLOY_REPO_BRANCH
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: secrets-store
|
- name: secrets-store
|
||||||
|
Reference in New Issue
Block a user