👷 deploy to all hive nodes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f68f2c72fc
commit
169f3cafc9
76
.drone.yml
76
.drone.yml
@ -3,14 +3,14 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clean environment
|
- name: clean environment node1
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: host
|
from_secret: host1
|
||||||
user: apphive
|
user: apphive
|
||||||
key:
|
key:
|
||||||
from_secret: git_usr_rsa_key
|
from_secret: git_usr_rsa_key
|
||||||
@ -19,14 +19,16 @@ steps:
|
|||||||
- cd /app/locale || exit
|
- cd /app/locale || exit
|
||||||
- echo > dummy.txt || exit
|
- echo > dummy.txt || exit
|
||||||
- rm -rf *
|
- rm -rf *
|
||||||
- name: copy files
|
- name: copy files host1
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
|
depends_on:
|
||||||
|
- clean environment node1
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: host
|
from_secret: host1
|
||||||
user: apphive
|
user: apphive
|
||||||
key:
|
key:
|
||||||
from_secret: git_usr_rsa_key
|
from_secret: git_usr_rsa_key
|
||||||
@ -34,3 +36,69 @@ steps:
|
|||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
target: /app/locale
|
target: /app/locale
|
||||||
source: ./
|
source: ./
|
||||||
|
- name: clean environment node2
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: host2
|
||||||
|
user: apphive
|
||||||
|
key:
|
||||||
|
from_secret: git_usr_rsa_key
|
||||||
|
port: 22
|
||||||
|
script:
|
||||||
|
- cd /app/locale || exit
|
||||||
|
- echo > dummy.txt || exit
|
||||||
|
- rm -rf *
|
||||||
|
- name: copy files host2
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
depends_on:
|
||||||
|
- clean environment node2
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: host2
|
||||||
|
user: apphive
|
||||||
|
key:
|
||||||
|
from_secret: git_usr_rsa_key
|
||||||
|
port: 22
|
||||||
|
command_timeout: 2m
|
||||||
|
target: /app/locale
|
||||||
|
source: ./
|
||||||
|
- name: clean environment node3
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: host3
|
||||||
|
user: apphive
|
||||||
|
key:
|
||||||
|
from_secret: git_usr_rsa_key
|
||||||
|
port: 22
|
||||||
|
script:
|
||||||
|
- cd /app/locale || exit
|
||||||
|
- echo > dummy.txt || exit
|
||||||
|
- rm -rf *
|
||||||
|
- name: copy files host3
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
depends_on:
|
||||||
|
- clean environment node3
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: host3
|
||||||
|
user: apphive
|
||||||
|
key:
|
||||||
|
from_secret: git_usr_rsa_key
|
||||||
|
port: 22
|
||||||
|
command_timeout: 2m
|
||||||
|
target: /app/locale
|
||||||
|
source: ./
|
||||||
Loading…
Reference in New Issue
Block a user