1
0

Removed drone support

This commit is contained in:
Jeddunk 2021-01-06 17:44:54 +01:00
parent fe04b3c5c4
commit 5cf406d80e

View File

@ -1,18 +0,0 @@
kind: pipeline
type: exec
name: default
steps:
- name: deploy
environment:
HOST:
from_secret: host
EMAIL:
from_secret: email
CONTAINERNAME: mainpage_new
commands:
- docker build ${DRONE_GIT_HTTP_URL} --tag ${DRONE_REPO}
- docker container stop $CONTAINERNAME
- docker container rm $CONTAINERNAME_backup
- docker container rename $CONTAINERNAME $CONTAINERNAME_backup
- docker run --detach --name mainpage_new --net nginx-proxy --env "VIRTUAL_HOST=$HOST,www.$HOST" --env "VIRTUAL_PORT=3000" --env "LETSENCRYPT_HOST=$HOST,www.$HOST" --env "LETSENCRYPT_EMAIL=$EMAIL" ${DRONE_REPO}