Remove .drone.yml configuration file.
This commit is contained in:
37
.drone.yml
37
.drone.yml
@@ -1,37 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy-backoffice
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deploying-project
|
|
||||||
image: alpine
|
|
||||||
environment:
|
|
||||||
SSH_USERNAME:
|
|
||||||
from_secret: ssh_username
|
|
||||||
SSH_HOSTNAME:
|
|
||||||
from_secret: ssh_hostname
|
|
||||||
SSH_PRIVATE_KEY:
|
|
||||||
from_secret: ssh_id_rsa
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache rsync openssh
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- |
|
|
||||||
rsync -avz --delete \
|
|
||||||
-e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa" \
|
|
||||||
./ $SSH_USERNAME@$SSH_HOSTNAME:/home/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME} \
|
|
||||||
--exclude .git \
|
|
||||||
--exclude node_modules \
|
|
||||||
--exclude .drone.yml
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
# testing 5
|
|
||||||
Reference in New Issue
Block a user