ci: move deploy step into own pipeline,
All checks were successful
continuous-integration/drone/push Build is passing

Fix docker entrypoint being overridden by drone
This commit is contained in:
teutat3s 2023-02-27 17:21:17 +01:00
parent 5ea2c54312
commit 681d60f533
Signed by: teutat3s
GPG key ID: 18DAE600A6BBE705

View file

@ -11,7 +11,7 @@ steps:
event:
- push
- name: build documentation image
- name: build docker image
image: plugins/docker
settings:
registry: registry.greenbaum.cloud
@ -27,6 +27,12 @@ steps:
event:
- tag
---
kind: pipeline
type: docker
name: deploy
steps:
- name: deploy
image: registry.greenbaum.cloud/library/triton-docker
environment:
@ -40,10 +46,12 @@ steps:
commands:
- mkdir -p /home/node/.ssh
- echo -e "$TRITON_SSH_KEY" > /home/node/.ssh/id_rsa
- /usr/local/bin/docker-entrypoint.sh
- ./deploy.sh $DRONE_TAG
when:
event:
- promote
- rollback
target:
- production
trigger:
event:
- promote
- rollback
target:
- production