From edfc9d06acbe6f32fa6d2dd78823c35b7b2b09e9 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Fri, 17 Sep 2021 21:15:35 +0200 Subject: [PATCH] enh(): Test restarting nginx after pipeline is done --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index daaf62b..a41c88f 100644 --- a/.drone.yml +++ b/.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/