.
This commit is contained in:
parent
3038179906
commit
9ef50093df
|
@ -101,10 +101,17 @@ steps:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: SSH_KEY
|
||||||
commands:
|
commands:
|
||||||
|
- git config credential.helper '!f() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; f'
|
||||||
|
- git fetch origin
|
||||||
|
- git checkout deployed
|
||||||
- git add -A
|
- git add -A
|
||||||
- git commit -m '$${DRONE_COMMIT_MESSAGE}'
|
- git commit -m '$${DRONE_COMMIT_MESSAGE}'
|
||||||
- git remote -v
|
- git remote -v
|
||||||
|
- git push origin deployed
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
|
Loading…
Reference in New Issue