From 911a6c324cb2802590d4bd9371e727fccd4f113f Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 27 Dec 2022 11:41:31 -0800 Subject: [PATCH 1/3] Add staging deployment --- .drone.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 69d21f5..eecd0c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,6 +17,23 @@ steps: dest: /src deploy_key: from_secret: drone_ssh_swarm.autonomic.zone + when: + branch: + - main + - name: docker cp deploy staging + image: 3wordchant/docker-cp-deploy:latest + depends_on: + - submodule + settings: + host: swarm.autonomic.zone + service: lasophielle-staging_autonomic_zone_app + source: . + dest: /src + deploy_key: + from_secret: drone_ssh_swarm.autonomic.zone + when: + branch: + - staging - name: notify on failure image: plugins/slack settings: @@ -27,10 +44,7 @@ steps: from_secret: rc_builds_url depends_on: - docker cp deploy + - docker cp deploy staging when: status: - failure - -trigger: - branch: - - main From ae5b1adb1482fcdd847b7c7dd8d378acefd8cac2 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 27 Dec 2022 11:43:34 -0800 Subject: [PATCH 2/3] Temporarily disable main deployment --- .drone.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index eecd0c2..229dd7e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,20 +6,20 @@ steps: image: plugins/git settings: recursive: true - - name: docker cp deploy - image: 3wordchant/docker-cp-deploy:latest - depends_on: - - submodule - settings: - host: swarm.autonomic.zone - service: lasophielle_org_app - source: . - dest: /src - deploy_key: - from_secret: drone_ssh_swarm.autonomic.zone - when: - branch: - - main + # - name: docker cp deploy + # image: 3wordchant/docker-cp-deploy:latest + # depends_on: + # - submodule + # settings: + # host: swarm.autonomic.zone + # service: lasophielle_org_app + # source: . + # dest: /src + # deploy_key: + # from_secret: drone_ssh_swarm.autonomic.zone + # when: + # branch: + # - main - name: docker cp deploy staging image: 3wordchant/docker-cp-deploy:latest depends_on: @@ -43,7 +43,7 @@ steps: webhook: from_secret: rc_builds_url depends_on: - - docker cp deploy + # - docker cp deploy - docker cp deploy staging when: status: From 5d664b9085707f4d8bfa00d06790667243489575 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 27 Dec 2022 11:44:27 -0800 Subject: [PATCH 3/3] Revert temp. disabling --- .drone.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 229dd7e..eecd0c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,20 +6,20 @@ steps: image: plugins/git settings: recursive: true - # - name: docker cp deploy - # image: 3wordchant/docker-cp-deploy:latest - # depends_on: - # - submodule - # settings: - # host: swarm.autonomic.zone - # service: lasophielle_org_app - # source: . - # dest: /src - # deploy_key: - # from_secret: drone_ssh_swarm.autonomic.zone - # when: - # branch: - # - main + - name: docker cp deploy + image: 3wordchant/docker-cp-deploy:latest + depends_on: + - submodule + settings: + host: swarm.autonomic.zone + service: lasophielle_org_app + source: . + dest: /src + deploy_key: + from_secret: drone_ssh_swarm.autonomic.zone + when: + branch: + - main - name: docker cp deploy staging image: 3wordchant/docker-cp-deploy:latest depends_on: @@ -43,7 +43,7 @@ steps: webhook: from_secret: rc_builds_url depends_on: - # - docker cp deploy + - docker cp deploy - docker cp deploy staging when: status: