enh(): Test restarting nginx after pipeline is done
This commit is contained in:
parent
90e752f560
commit
edfc9d06ac
1 changed files with 7 additions and 1 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue