Browse Source

enh(): Test restarting nginx after pipeline is done

main
Elia el Lazkani 1 month ago
parent
commit
edfc9d06ac
  1. 8
      .drone.yml

8
.drone.yml

@ -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…
Cancel
Save