Script drone custom pour le déploiement
This commit is contained in:
parent
8f7997c152
commit
08d431699b
15
.drone.yml
15
.drone.yml
@ -1,7 +1,10 @@
|
||||
pipeline:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
registry: registry.nyanlout.re
|
||||
repo: registry.nyanlout.re/site-max
|
||||
tags: latest
|
||||
secrets: [ docker_username, docker_password ]
|
||||
build:
|
||||
image: docker
|
||||
commands:
|
||||
- docker build -t site-max .
|
||||
- docker stop site-max
|
||||
- docker rm site-max
|
||||
- docker run -d --network nginx-net --name site-max --label traefik.frontend.rule=Host:maxspiegel.fr --label traefik.port=80 site-max
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
Loading…
Reference in New Issue
Block a user