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
|
pull: always
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
path: /var/run/docker.sock
|
||||||
- name: blog-path
|
- name: blog-path
|
||||||
path: /blog/
|
path: /blog/
|
||||||
environment:
|
environment:
|
||||||
|
@ -36,8 +38,12 @@ steps:
|
||||||
- cd /blog/
|
- cd /blog/
|
||||||
- rm -f blog.lazkani.io
|
- rm -f blog.lazkani.io
|
||||||
- ln -s "${DRONE_COMMIT}" blog.lazkani.io
|
- ln -s "${DRONE_COMMIT}" blog.lazkani.io
|
||||||
|
- docker restart nginx
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
- name: blog-path
|
- name: blog-path
|
||||||
host:
|
host:
|
||||||
path: /mnt/blog/
|
path: /mnt/blog/
|
||||||
|
|
Loading…
Reference in a new issue