Compare commits
1 Commits
1ff3960cc1
...
bb09cbb99d
Author | SHA1 | Date |
---|---|---|
giles | bb09cbb99d |
23
.drone.yml
23
.drone.yml
|
@ -11,23 +11,6 @@ clone:
|
||||||
disable: false
|
disable: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "git - pre format"
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- 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 branch -D product-development
|
|
||||||
- git checkout product-development
|
|
||||||
- merge --squash --no-commit --no-ff --strategyoption=theirs format-branch
|
|
||||||
environment:
|
|
||||||
GIT_PASSWORD:
|
|
||||||
from_secret: GIT_PASSWORD
|
|
||||||
GIT_USER:
|
|
||||||
from_secret: GIT_USER
|
|
||||||
- name: "convert to xml"
|
- name: "convert to xml"
|
||||||
image: sigyl/zone-10-batch2yaml:latest
|
image: sigyl/zone-10-batch2yaml:latest
|
||||||
when:
|
when:
|
||||||
|
@ -42,7 +25,7 @@ steps:
|
||||||
image: sigyl/zone-10-batch2yaml:latest
|
image: sigyl/zone-10-batch2yaml:latest
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- format-branch
|
- deployed
|
||||||
commands:
|
commands:
|
||||||
- node /app/servers/apps/batch2yaml/build/index.js . yml
|
- node /app/servers/apps/batch2yaml/build/index.js . yml
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -77,7 +60,7 @@ steps:
|
||||||
- name: "git - product-development"
|
- name: "git - product-development"
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- format-branch
|
- deployed
|
||||||
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'
|
||||||
|
@ -117,7 +100,7 @@ volumes:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- format-branch
|
- deployed
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
Loading…
Reference in New Issue