From d66652e79d81b4f6cf10e3732af68afe119d01a3 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Sun, 16 Apr 2023 05:10:40 +0800 Subject: [PATCH] Added support for n8n webhook to trigger the build of other related images. --- .drone.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c0a0fdc..b25e1d4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - echo "$(date "+%Y-%m-%d"), latest" > .tags - - name: &name ubuntu-22 + - name: ubuntu-22 image: &image thegeeklab/drone-docker-buildx:23 depends_on: &depends - create_tags @@ -65,3 +65,12 @@ steps: - type=local\\,src=/cache/${DRONE_REPO}/ubuntu-18.04 cache_to: - type=local,dest=/cache/${DRONE_REPO}/ubuntu-18.04,mode=max + + - name: send_n8n + image: curlimages/curl:latest + depends_on: + - ubuntu-22 + - ubuntu-20 + - ubuntu-18 + commands: + - curl https://n8n.ahkhan.me/webhook/drone/gitea/docker/ubuntu -H 'Authorization:Bearer wJlK5lDvTUS03Cfd4RWKyQ'