From : https://gist.github.com/ankurk91/2efe14650d54d7d09528cea3ed432f6d
#Git branch in prompt.
git branch 2> /dev/null | sed -e '/^[^]/d' -e 's/ (.*)/ (\1)/'
export PS1="\u@\h \W[\033[32m]\$(parse_git_branch)[\033[00m] $ "
Want to find out more about these escaped codes and ANSI escape sequence color codes, here’s a good reference.
Following on from this post, Runners are added per project (unless they are shared). If you’re configuring a new project and haven’t created a new runner and assigned it to your project, you’ll see this:
Add a new runner per the steps in the previous article.
Assuming you already have an installed an running Gitlab server, you need to install and configure a GitLab runner:
Install gitlab-runner: https://docs.gitlab.com/runner/install/linux-repository.html
Run the gitlab-runner shell setup, described here: https://docs.gitlab.com/ce/ci/docker/using_docker_build.html
Get the registration token from the Settings / CI/CD Settings page.
You can now use docker commands in the script section of your .gitlab-ci.yml file defining your pipeline.
After installing GitLab, by default your project urls are @gitlab.example.com:
Your server domain is configured in the /etc/gitlab/gitlab.rb file, as described in the docs here.
To pick up your changes:
sudo gitlab-ctl reconfigure