Update .drone.yml
This commit is contained in:
parent
03e88c5bfa
commit
f0b18ee77f
21
.drone.yml
21
.drone.yml
@ -30,21 +30,18 @@ steps:
|
|||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
# REPO:
|
REPO:
|
||||||
# from_secret: repo
|
from_secret: repo
|
||||||
# IP:
|
IP:
|
||||||
# from_secret: deploy_ip
|
from_secret: deploy_ip
|
||||||
# NET:
|
NET:
|
||||||
# from_secret: deploy_net
|
from_secret: deploy_net
|
||||||
# NAME:
|
NAME:
|
||||||
# from_secret: deploy_name
|
from_secret: deploy_name
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: ssh_host
|
from_secret: ssh_host
|
||||||
PLUGIN_USERNAME:
|
PLUGIN_USERNAME:
|
||||||
from_secret: ssh_user
|
from_secret: ssh_user
|
||||||
PLUGIN_PASSWORD:
|
PLUGIN_PASSWORD:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
PLUGIN_SCRIPT: whoami
|
PLUGIN_SCRIPT: docker run -d --net $NET --ip $IP --hostname $NAME --restart unless-stopped $REPO
|
||||||
# script:
|
|
||||||
# Deploy image as container
|
|
||||||
# - docker run -d --net $NET --ip $IP --hostname $NAME --restart unless-stopped $REPO
|
|
||||||
|
Loading…
Reference in New Issue
Block a user