Remove restarting-project step from .drone.yml
Some checks failed
continuous-integration/drone/push Build was killed
Some checks failed
continuous-integration/drone/push Build was killed
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -33,25 +33,3 @@ steps:
|
|||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
- name: restarting-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 openssh
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- CONTAINER_NAME="${DRONE_REPO_OWNER}_${DRONE_REPO_NAME}"
|
|
||||||
- ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa $SSH_USERNAME@$SSH_HOSTNAME "docker restart $CONTAINER_NAME"
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- develop
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|||||||
Reference in New Issue
Block a user