Browse Source

fix(configure): add runner v2 support

pull/1801/head
Harry Vasanth 1 year ago committed by Harry
parent
commit
5a98fe519e
  1. 16
      sh/debian/configure.sh

16
sh/debian/configure.sh diff.vendored

@ -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…
Cancel
Save