diff --git a/sh/debian/configure.sh b/sh/debian/configure.sh index 8acccc4b3..660a88d2e 100755 --- a/sh/debian/configure.sh +++ b/sh/debian/configure.sh @@ -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" }