Compare commits
1 Commits
6cedcd07ec
...
30234f790a
Author | SHA1 | Date |
---|---|---|
drone | 30234f790a |
12
.drone.yml
12
.drone.yml
|
@ -17,12 +17,11 @@ steps:
|
|||
- format-branch
|
||||
image: alpine/git:latest
|
||||
commands:
|
||||
- git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_PASSWORD}"; }; f'
|
||||
- git checkout -b master
|
||||
- git pull origin master
|
||||
#- git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_PASSWORD}"; }; f'
|
||||
#- git checkout -b master
|
||||
#- git pull origin master
|
||||
# - git branch -D product-development
|
||||
- git checkout -b product-development
|
||||
- git merge format-branch
|
||||
#- git merge --squash --no-commit --strategy-option=theirs format-branch
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
|
@ -46,7 +45,6 @@ steps:
|
|||
branch:
|
||||
- format-branch
|
||||
commands:
|
||||
- node /app/servers/apps/batch2yaml/build/index.js . delete
|
||||
- node /app/servers/apps/batch2yaml/build/index.js . yml
|
||||
volumes:
|
||||
- name: dockersock
|
||||
|
@ -70,7 +68,7 @@ steps:
|
|||
commands:
|
||||
- git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_PASSWORD}"; }; f'
|
||||
- git add -A
|
||||
- git commit -m "deploying- $${DRONE_COMMIT_MESSAGE}"
|
||||
- git commit -m "$${DRONE_COMMIT_MESSAGE}"
|
||||
- git push -f origin HEAD:deployed
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
|
@ -101,7 +99,7 @@ steps:
|
|||
- git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_PASSWORD}"; }; f'
|
||||
- git add -A
|
||||
- git commit -m "$${DRONE_COMMIT_MESSAGE}"
|
||||
- git push origin HEAD:product-development
|
||||
- git push -f origin HEAD:product-development
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
|
|
Loading…
Reference in New Issue