Update .drone.yml

This commit is contained in:
Florian Kaiser 2022-03-09 09:39:15 +01:00 committed by GitHub
parent a4d72b0f68
commit 5e42d0001e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,15 +28,6 @@ steps:
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: docker_host
username:
from_secret: docker_username
password:
from_secret: docker_password
port:
from_secret: docker_port
network_mode: host
environment:
REPO:
@ -47,6 +38,12 @@ steps:
from_secret: deploy_net
NAME:
from_secret: deploy_name
PLUGIN_HOST:
from_secret: docker_host
PLUGIN_USERNAME:
from_secret: docker_username
PLUGIN_PASSWORD:
from_secret: docker_password
script:
# Deploy image as container
- docker run -d --net $NET --ip $IP --hostname $NAME --restart unless-stopped $REPO