From c3d65b5579852ad8bbfed8403996c5360e4d30a5 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 27 Jan 2023 17:41:05 +0000 Subject: [PATCH 1/3] Add .drone.yml --- .drone.yml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..99949c6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,76 @@ +--- + +kind: pipeline +type: ssh +name: deployment + +server: + host: 192.168.68.121 + user: vylpes + password: + from_secret: ssh_password + +steps: +- name: deploy + commands: + - sh /home/vylpes/scripts/vylbot/deploy_prod.sh + +trigger: + branch: + - main + event: + - promote + target: + - production + +--- + +kind: pipeline +type: ssh +name: staging + +server: + host: 192.168.68.121 + user: vylpes + password: + from_secret: ssh_password + +steps: +- name: deploy + commands: + - sh /home/vylpes/scripts/vylbot/deploy_stage.sh + +trigger: + branch: + - develop + event: + - push + +--- + +kind: pipeline +name: integration + +steps: +- name: build + image: node + commands: + - yarn install --frozen-lockfile + - yarn build + +- name: test + image: node + commands: + - yarn install --frozen-lockfile + - yarn test + +trigger: + branch: + - main + - develop + - hotfix/* + - feature/* + - renovate/* + event: + - push + - pull_request \ No newline at end of file From 4c1726f5c8a91cbd96dfcf7d58e7413f2e34c25b Mon Sep 17 00:00:00 2001 From: Vylpes Date: Mon, 30 Jan 2023 11:11:04 +0000 Subject: [PATCH 2/3] Update '.drone.yml' --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 99949c6..ec32358 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,7 @@ type: ssh name: deployment server: - host: 192.168.68.121 + host: 192.168.1.2 user: vylpes password: from_secret: ssh_password @@ -30,7 +30,7 @@ type: ssh name: staging server: - host: 192.168.68.121 + host: 192.168.1.2 user: vylpes password: from_secret: ssh_password From 8e5ac6d01e8a2af0096c8c8b68945f50b6c49901 Mon Sep 17 00:00:00 2001 From: Vylpes Date: Thu, 2 Feb 2023 08:38:14 +0000 Subject: [PATCH 3/3] Update '.drone.yml' --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index ec32358..99949c6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,7 @@ type: ssh name: deployment server: - host: 192.168.1.2 + host: 192.168.68.121 user: vylpes password: from_secret: ssh_password @@ -30,7 +30,7 @@ type: ssh name: staging server: - host: 192.168.1.2 + host: 192.168.68.121 user: vylpes password: from_secret: ssh_password