From 81b006c9385d701df991f42ac84300166ad56460 Mon Sep 17 00:00:00 2001 From: Chris Kim <30601846+Oats87@users.noreply.github.com> Date: Wed, 7 Jul 2021 10:11:13 -0700 Subject: [PATCH] Dispatch to rancher/system-agent-installer-k3s when tagged (#3589) Signed-off-by: Chris Kim --- scripts/dispatch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/dispatch b/scripts/dispatch index efd9a30c6d..ee320089f5 100755 --- a/scripts/dispatch +++ b/scripts/dispatch @@ -9,3 +9,11 @@ curl -XPOST -u "${PAT_USERNAME}:${PAT_TOKEN}" \ -H "Accept: application/vnd.github.everest-preview+json" \ -H "Content-Type: application/json" $REPO \ --data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}' + +SYSTEM_AGENT_INSTALLER_K3S_REPO="https://api.github.com/repos/rancher/system-agent-installer-k3s/dispatches" + +# send dispatch event to SYSTEM_AGENT_INSTALLER_K3S_REPO +curl -XPOST -u "${PAT_USERNAME}:${PAT_TOKEN}" \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Content-Type: application/json" $SYSTEM_AGENT_INSTALLER_K3S_REPO \ + --data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}'