Rewrite push step
This commit is contained in:
parent
a57a2ea7e1
commit
d4a6ee0290
1 changed files with 14 additions and 7 deletions
|
|
@ -10,15 +10,22 @@ steps:
|
||||||
event: [cron, manual]
|
event: [cron, manual]
|
||||||
|
|
||||||
- name: push commit
|
- name: push commit
|
||||||
image: appleboy/drone-git-push
|
image: alpine/git
|
||||||
settings:
|
commands:
|
||||||
commit: true
|
- apk add --update openssh-client bash
|
||||||
commit_message: "Update age"
|
- eval $(ssh-agent -s)
|
||||||
# remote_name: origin
|
- bash -c 'ssh-add <(echo "$SSH_PRIVATE_KEY")'
|
||||||
# remote: "git@git.polarolouis.fr:2220/polarolouis/cv-latex.git"
|
- git config --global user.email "$author_email"
|
||||||
|
- git config --global user.name "$author_name"
|
||||||
|
- git add -f infos_persos.tex
|
||||||
|
- git status
|
||||||
|
- git commit -m "Update age in infos_persos.tex [CI SKIP]"
|
||||||
|
- git push origin "${CI_REPO_DEFAULT_BRANCH}" -o ci.skip
|
||||||
|
environment:
|
||||||
|
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||||
author_name: "Woodpecker CI"
|
author_name: "Woodpecker CI"
|
||||||
author_email: "git@polarolouis.fr"
|
author_email: "git@polarolouis.fr"
|
||||||
ssh_key:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH-KEY
|
from_secret: SSH-KEY
|
||||||
when:
|
when:
|
||||||
- path:
|
- path:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue