Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a0cfc668
Commit
a0cfc668
authored
Jan 30, 2025
by
Reinhard Nägele
Committed by
Brad Davidson
Jan 30, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make GITHUB_URL overridable
Signed-off-by:
Reinhard Nägele
<
unguiculus@gmail.com
>
parent
6100f5c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
install.sh
install.sh
+3
-3
install.sh.sha256sum
install.sh.sha256sum
+1
-1
No files found.
install.sh
View file @
a0cfc668
...
...
@@ -95,7 +95,7 @@ set -o noglob
# Channel to use for fetching k3s download URL.
# Defaults to 'stable'.
GITHUB_URL
=
https://github.com/k3s-io/k3s/releases
GITHUB_URL
=
${
GITHUB_URL
:-
https
://github.com/k3s-io/k3s/releases
}
GITHUB_PR_URL
=
""
STORAGE_URL
=
https://k3s-ci-builds.s3.amazonaws.com
DOWNLOADER
=
...
...
@@ -513,8 +513,8 @@ get_pr_artifact_url() {
# GET request to the GitHub API to retrieve the Build workflow associated with the commit
run_id
=
$(
curl
-s
-H
"Authorization: Bearer
${
GITHUB_TOKEN
}
"
"
${
github_api_url
}
/commits/
${
commit_id
}
/check-runs?check_name=build%20%2F%20Build"
| jq
-r
'[.check_runs | sort_by(.id) | .[].details_url | split("/")[7]] | last'
)
# Extract the artifact ID for the "k3s" artifact
# Extract the artifact ID for the "k3s" artifact
GITHUB_PR_URL
=
$(
curl
-s
-H
"Authorization: Bearer
${
GITHUB_TOKEN
}
"
"
${
github_api_url
}
/actions/runs/
${
run_id
}
/artifacts"
| jq
-r
'.artifacts[] | select(.name == "k3s") | .archive_download_url'
)
}
...
...
install.sh.sha256sum
View file @
a0cfc668
73ca045f12174c87138d59dd14b23b8ab70d96c9eaead63104109d330daa8a6a
install.sh
b0715fb49a4a1d32241ac23c222a1d343baa1f2846f25032b306d1b30dbacd15
install.sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment