enh(): Test restarting nginx after pipeline is done

This commit is contained in:
Elia el Lazkani 2021-09-17 21:15:35 +02:00
parent 90e752f560
commit edfc9d06ac

View file

@ -19,8 +19,10 @@ steps:
pull: always
- name: deploy
image: alpine
image: docker:dind
volumes:
- name: docker-socket
path: /var/run/docker.sock
- name: blog-path
path: /blog/
environment:
@ -36,8 +38,12 @@ steps:
- cd /blog/
- rm -f blog.lazkani.io
- ln -s "${DRONE_COMMIT}" blog.lazkani.io
- docker restart nginx
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
- name: blog-path
host:
path: /mnt/blog/