diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6326b42a5e8..5c39253abce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,27 +118,28 @@ jobs: with: files: | dist/artifacts/* - # dispatch: - # needs: [release-amd64, release-arm64] - # runs-on: runs-on,runner=8cpu-linux-x64,run-id=${{ github.run_id }},image=ubuntu22-full-x64,hdd=64 - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 + dispatch: + needs: [release-amd64, release-arm64] + runs-on: runs-on,runner=8cpu-linux-x64,run-id=${{ github.run_id }},image=ubuntu22-full-x64,hdd=64 + steps: + - name: Checkout code + uses: actions/checkout@v4 - # - name: Install Dapper - # run: | - # curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) > /usr/local/bin/dapper - # chmod +x /usr/local/bin/dapper + - name: Install Dapper + run: | + curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) > /usr/local/bin/dapper + chmod +x /usr/local/bin/dapper - # - name: "Read secrets" - # uses: rancher-eio/read-vault-secrets@main - # with: - # secrets: | - # secret/data/github/repo/${{ github.repository }}/pat_username/credentials token | PAT_USERNAME ; + # - name: "Read secrets" + # uses: rancher-eio/read-vault-secrets@main + # with: + # secrets: | + # secret/data/github/repo/${{ github.repository }}/pat_username/credentials token | PAT_USERNAME ; - # - name: Dispatch - # run: | - # dapper -f Dockerfile --target dapper make dispatch - # env: - # PAT_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # PATH_USERNAME: ${{ env.PAT_USERNAME }} + - name: Dispatch + run: | + dapper -f Dockerfile --target dapper make dispatch + env: + PAT_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PATH_USERNAME: ${{ secrets.PAT_USERNAME }} + GITHUB_ACTION_TAG: ${{ env.GITHUB_ACTION_TAG }} diff --git a/scripts/dispatch b/scripts/dispatch index 73d6bfa7bf3..18c3e54d3b4 100755 --- a/scripts/dispatch +++ b/scripts/dispatch @@ -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"'"}}'