From 5a98fe519eada72123aadf89ff6cf70468a597dd Mon Sep 17 00:00:00 2001 From: Harry Vasanth Date: Fri, 10 Feb 2023 14:58:17 +0000 Subject: [PATCH] fix(configure): add runner v2 support --- sh/debian/configure.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sh/debian/configure.sh b/sh/debian/configure.sh index 8acccc4b..660a88d2 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" }