Compare commits

..

1 Commits

Author SHA1 Message Date
giles c88b92af8c Merge pull request '.' (#39) from product-development into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #39
2023-10-18 20:40:40 +00:00
1 changed files with 37 additions and 20 deletions

View File

@ -28,6 +28,38 @@ 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:
@ -42,7 +74,7 @@ steps:
image: sigyl/zone-10-batch2yaml:latest
when:
branch:
- deployed
- format-branch
commands:
- node /app/servers/apps/batch2yaml/build/index.js . yml
volumes:
@ -52,7 +84,7 @@ steps:
when:
branch:
- master
- deployed
- format-branch
image: alpine/git:latest
commands:
- git status
@ -63,33 +95,18 @@ 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 HEAD:deployed
- git push -f origin --set-upstream $$(git symbolic-ref --short HEAD)
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
@ -117,7 +134,7 @@ volumes:
trigger:
branch:
- deployed
- format-branch
- master
event:
- push