mirror of https://github.com/01-edu/public.git
fix(configure): add runner v2 support
This commit is contained in:
parent
a8e4b56e84
commit
5a98fe519e
|
@ -258,9 +258,23 @@ function deployCore() {
|
|||
# Deploy Runner
|
||||
echo -e "Deploying Runner service: \n "
|
||||
cd /root/core/runner
|
||||
|
||||
# Get the latest release version tag and create latest branch
|
||||
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
git checkout $tag -b latest
|
||||
git describe --tags
|
||||
|
||||
# Set upstream to latest
|
||||
git branch --set-upstream-to=origin/latest latest
|
||||
|
||||
# Get user auth infor for the runner
|
||||
echo -e "Enter the runner Registry password: "
|
||||
read registryPassword
|
||||
REGISTRY_PASSWORD=$registryPassword ./run.sh
|
||||
echo -e "Enter the runner GitHub username: "
|
||||
read githubUsername
|
||||
echo -e "Enter the runner GitHub token: "
|
||||
read githubToken
|
||||
REGISTRY_PASSWORD=$registryPassword GITHUB_USERNAME=$githubUsername GITHUB_TOKEN=$githubToken ./run.sh
|
||||
echo -e "Runner service is up! \n"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue