ci: move deploy step into own pipeline,
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fix docker entrypoint being overridden by drone
This commit is contained in:
parent
5ea2c54312
commit
681d60f533
22
.drone.yml
22
.drone.yml
|
@ -11,7 +11,7 @@ steps:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
- name: build documentation image
|
- name: build docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: registry.greenbaum.cloud
|
registry: registry.greenbaum.cloud
|
||||||
|
@ -27,6 +27,12 @@ steps:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: registry.greenbaum.cloud/library/triton-docker
|
image: registry.greenbaum.cloud/library/triton-docker
|
||||||
environment:
|
environment:
|
||||||
|
@ -40,10 +46,12 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /home/node/.ssh
|
- mkdir -p /home/node/.ssh
|
||||||
- echo -e "$TRITON_SSH_KEY" > /home/node/.ssh/id_rsa
|
- echo -e "$TRITON_SSH_KEY" > /home/node/.ssh/id_rsa
|
||||||
|
- /usr/local/bin/docker-entrypoint.sh
|
||||||
- ./deploy.sh $DRONE_TAG
|
- ./deploy.sh $DRONE_TAG
|
||||||
when:
|
|
||||||
event:
|
trigger:
|
||||||
- promote
|
event:
|
||||||
- rollback
|
- promote
|
||||||
target:
|
- rollback
|
||||||
- production
|
target:
|
||||||
|
- production
|
||||||
|
|
Loading…
Reference in a new issue