hive_sales_sync_costarica/.drone.yml
Marvin Vallecillo a2663d15be First commit
2024-07-17 04:19:28 -06:00

70 lines
1.6 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: clean environment
image: appleboy/drone-ssh
settings:
host:
from_secret: host
user:
from_secret: user
key:
from_secret: git_usr_rsa_key
port:
from_secret: port
script:
- cd /home/administrador/applications/hive_sales_sync/app || exit
- echo > dummy.txt || exit
- rm -rf *
- name: copy conf file
image: appleboy/drone-ssh
depends_on:
- clean environment
settings:
host:
from_secret: host
user:
from_secret: user
key:
from_secret: git_usr_rsa_key
port:
from_secret: port
script:
- cd /home/administrador/applications/hive_sales_sync || exit
- cp conf.json app || exit
- name: copy files
image: appleboy/drone-scp
depends_on:
- clean environment
settings:
host:
from_secret: host
user:
from_secret: user
key:
from_secret: git_usr_rsa_key
port:
from_secret: port
command_timeout: 2m
target: /home/administrador/applications/hive_sales_sync/app
source: ./
- name: rm git
image: appleboy/drone-ssh
depends_on:
- copy files
settings:
host:
from_secret: host
user:
from_secret: user
key:
from_secret: git_usr_rsa_key
port:
from_secret: port
script:
- cd /home/administrador/applications/hive_sales_sync/app || exit
- rm -rf .git
- hostname