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