From a80b633d57686000bf42151f6aabb7f77fd54768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 4 Oct 2023 19:53:25 +0200 Subject: [PATCH] ci: automatically redeploy container --- .drone.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 128a6f7..cf6fe1b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,9 +32,20 @@ steps: branch: exclude: - main + +- name: redeploy on portainer + image: plugins/webhook + settings: + urls: [ "https://portainer.kucharczyk.xyz/api/webhooks/${ID} "] + depends_on: + - "build container (non-prod)" + environment: + ID: + from_secret: PORTAINER_TIMETRACKER_WEBHOOK_ID + trigger: event: - push - - cron \ No newline at end of file + - cron