forked from rancher/rke2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: galal-hussein <[email protected]>
- Loading branch information
1 parent
fe93a53
commit 7cced6c
Showing
2 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
REPO="https://api.github.com/repos/rancher/rke2-upgrade/dispatches" | ||
REPO="https://api.github.com/repos/galal-hussein/rke2-upgrade/dispatches" | ||
|
||
# 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 \ | ||
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}' | ||
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$GITHUB_ACTION_TAG"'"}}' | ||
|
||
SYSTEM_AGENT_INSTALLER_RKE2_REPO="https://api.github.com/repos/rancher/system-agent-installer-rke2/dispatches" | ||
SYSTEM_AGENT_INSTALLER_RKE2_REPO="https://api.github.com/repos/galal-hussein/system-agent-installer-rke2/dispatches" | ||
|
||
# send dispatch event to SYSTEM_AGENT_INSTALLER_RKE2_REPO | ||
curl -XPOST -u "${PAT_USERNAME}:${PAT_TOKEN}" \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Content-Type: application/json" $SYSTEM_AGENT_INSTALLER_RKE2_REPO \ | ||
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}' | ||
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$GITHUB_ACTION_TAG"'"}}' |