From 681d60f533695d532e105d07a53e310ecf030dd6 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Mon, 27 Feb 2023 17:21:17 +0100 Subject: [PATCH] ci: move deploy step into own pipeline, Fix docker entrypoint being overridden by drone --- .drone.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index dbb19dd..c9350d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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