Added drone support
This commit is contained in:
parent
bc27c83c81
commit
fe04b3c5c4
18
.drone.yml
Normal file
18
.drone.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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}
|
Loading…
Reference in New Issue
Block a user