2020-11-03 21:42:44 +00:00
|
|
|
#!/bin/bash
|
2020-02-14 22:48:28 +00:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2020-12-10 21:31:44 +00:00
|
|
|
REPO="https://api.github.com/repos/k3s-io/k3s-upgrade/dispatches"
|
2020-02-14 22:48:28 +00:00
|
|
|
|
|
|
|
# send dispatch event to REPO
|
|
|
|
curl -XPOST -u "${PAT_USERNAME}:${PAT_TOKEN}" \
|
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
|
-H "Content-Type: application/json" $REPO \
|
2020-11-03 21:42:44 +00:00
|
|
|
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}'
|
2021-07-07 15:43:10 +00:00
|
|
|
|
|
|
|
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"'"}}'
|