Skip to content

Commit

Permalink
feat: Skip runner download and install if it's already done (#446)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Wilson <[email protected]>
  • Loading branch information
2 people authored and npalm committed Mar 7, 2022
1 parent d997e79 commit 478ea6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions template/gitlab-runner.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ then
yum install amazon-ecr-credential-helper -y
fi

curl --fail --retry 6 -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
yum install gitlab-runner-${gitlab_runner_version} -y
if ! ( rpm -q gitlab-runner >/dev/null )
then
curl --fail --retry 6 -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
yum install gitlab-runner-${gitlab_runner_version} -y
fi

if [[ `echo ${docker_machine_download_url}` == "" ]]
then
Expand Down

0 comments on commit 478ea6a

Please sign in to comment.