Skip to content
Snippets Groups Projects
Commit 8b797009 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Adapte "make update" to gitlab-workhorse GOPATH

parent 6457fb56
No related branches found
No related tags found
1 merge request!173Use a GOPATH to install gitlab-workhorse
gitlab_repo = https://gitlab.com/gitlab-org/gitlab-ce.git
gitlab_shell_repo = https://gitlab.com/gitlab-org/gitlab-shell.git
gitlab_workhorse_repo = https://gitlab.com/gitlab-org/gitlab-workhorse.git
gitlab_workhorse_clone_dir = gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse
gitlab_development_root = $(shell pwd)
postgres_bin_dir = $(shell pg_config --bindir)
postgres_replication_user = gitlab_replication
Loading
Loading
@@ -151,17 +152,19 @@ localhost.key:
 
gitlab-workhorse-setup: gitlab-workhorse/bin/gitlab-workhorse
 
gitlab-workhorse-update: gitlab-workhorse/.git/pull
make
gitlab-workhorse-update: gitlab-workhorse/.git/pull gitlab-workhorse-clean-bin gitlab-workhorse/bin/gitlab-workhorse
 
gitlab-workhorse/bin/gitlab-workhorse: gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse/.git
gitlab-workhorse-clean-bin:
rm -rf gitlab-workhorse/bin
gitlab-workhorse/bin/gitlab-workhorse: ${gitlab_workhorse_clone_dir}/.git
GOPATH=${gitlab_development_root}/gitlab-workhorse go install gitlab.com/gitlab-org/gitlab-workhorse/...
 
gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse/.git:
git clone ${gitlab_workhorse_repo} gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse
${gitlab_workhorse_clone_dir}/.git:
git clone ${gitlab_workhorse_repo} ${gitlab_workhorse_clone_dir}
 
gitlab-workhorse/.git/pull:
cd ${gitlab_development_root}/gitlab-workhorse && \
cd ${gitlab_workhorse_clone_dir} && \
git stash &&\
git checkout master &&\
git pull --ff-only
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment