Compare commits

..

9 Commits

Author SHA1 Message Date
giles 05e9d5989e Merge pull request '.' (#42) from product-development into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #42
2023-10-18 20:58:10 +00:00
giles f46d549961 Merge pull request '.' (#42) from product-development into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #42
2023-10-18 20:58:01 +00:00
giles 98bbefcb57 Merge branch 'master' into product-development
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-18 20:57:07 +00:00
giles e3234be4ae .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-18 21:56:26 +01:00
giles f3df639d92 Merge pull request '.' (#41) from product-development into master
continuous-integration/drone/push Build is failing Details
Reviewed-on: #41
2023-10-18 20:53:33 +00:00
giles c46847a250 Merge branch 'master' into product-development
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-18 20:53:28 +00:00
giles a630a88c35 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-18 21:52:48 +01:00
giles 90f32e372e Merge pull request '.' (#40) from product-development into master
continuous-integration/drone/push Build encountered an error Details
Reviewed-on: #40
2023-10-18 20:51:27 +00:00
giles 328c73f710 .
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone/pr Build encountered an error Details
2023-10-18 21:50:42 +01:00
1 changed files with 20 additions and 37 deletions

View File

@ -28,38 +28,6 @@ clone:
disable: false disable: false
steps: 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" - name: "convert to xml"
image: sigyl/zone-10-batch2yaml:latest image: sigyl/zone-10-batch2yaml:latest
when: when:
@ -74,7 +42,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:
@ -84,7 +52,7 @@ steps:
when: when:
branch: branch:
- master - master
- format-branch - deployed
image: alpine/git:latest image: alpine/git:latest
commands: commands:
- git status - git status
@ -95,18 +63,33 @@ steps:
when: when:
branch: branch:
- master - master
- 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 add -A - git add -A
- git commit -m "$${DRONE_COMMIT_MESSAGE}" - git commit -m "$${DRONE_COMMIT_MESSAGE}"
- git push -f origin --set-upstream $$(git symbolic-ref --short HEAD) - git push -f origin HEAD:deployed
environment: environment:
GIT_PASSWORD: GIT_PASSWORD:
from_secret: GIT_PASSWORD from_secret: GIT_PASSWORD
GIT_USER: GIT_USER:
from_secret: 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: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
@ -134,7 +117,7 @@ volumes:
trigger: trigger:
branch: branch:
- format-branch - deployed
- master - master
event: event:
- push - push