Update .drone.yml

This commit is contained in:
Florian Kaiser 2022-03-10 08:20:44 +01:00 committed by GitHub
parent 03e88c5bfa
commit f0b18ee77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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