Compare commits
9 Commits
c88b92af8c
...
05e9d5989e
Author | SHA1 | Date |
---|---|---|
giles | 05e9d5989e | |
giles | f46d549961 | |
giles | 98bbefcb57 | |
giles | e3234be4ae | |
giles | f3df639d92 | |
giles | c46847a250 | |
giles | a630a88c35 | |
giles | 90f32e372e | |
giles | 328c73f710 |
57
.drone.yml
57
.drone.yml
|
@ -28,38 +28,6 @@ clone:
|
|||
disable: false
|
||||
|
||||
steps:
|
||||
- name: "check out product-development"
|
||||
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 fetch
|
||||
- git checkout -b product-development
|
||||
- git merge format-branch
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
|
||||
- name: "check out deployed"
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
image: alpine/git:latest
|
||||
commands:
|
||||
- git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_PASSWORD}"; }; f'
|
||||
- git fetch
|
||||
- git checkout -b deployed
|
||||
- git merge master
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
|
||||
- name: "convert to xml"
|
||||
image: sigyl/zone-10-batch2yaml:latest
|
||||
when:
|
||||
|
@ -74,7 +42,7 @@ steps:
|
|||
image: sigyl/zone-10-batch2yaml:latest
|
||||
when:
|
||||
branch:
|
||||
- format-branch
|
||||
- deployed
|
||||
commands:
|
||||
- node /app/servers/apps/batch2yaml/build/index.js . yml
|
||||
volumes:
|
||||
|
@ -84,7 +52,7 @@ steps:
|
|||
when:
|
||||
branch:
|
||||
- master
|
||||
- format-branch
|
||||
- deployed
|
||||
image: alpine/git:latest
|
||||
commands:
|
||||
- git status
|
||||
|
@ -95,18 +63,33 @@ steps:
|
|||
when:
|
||||
branch:
|
||||
- master
|
||||
- format-branch
|
||||
image: alpine/git:latest
|
||||
commands:
|
||||
- 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 -f origin --set-upstream $$(git symbolic-ref --short HEAD)
|
||||
- git push -f origin HEAD:deployed
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
- name: "git - product-development"
|
||||
when:
|
||||
branch:
|
||||
- deployed
|
||||
image: alpine/git:latest
|
||||
commands:
|
||||
- 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 -f origin HEAD:product-development
|
||||
environment:
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
@ -134,7 +117,7 @@ volumes:
|
|||
|
||||
trigger:
|
||||
branch:
|
||||
- format-branch
|
||||
- deployed
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
|
Loading…
Reference in New Issue