Giter Club home page Giter Club logo

gitlab-runner's Introduction

GitLab Runner

Table of Contents

Prerequisites

Installation

Creating project runner

  1. Open GitLab.com then navigate to your project's CI/CD settings page.
  2. Expand Runners section.
  3. First, turn off instance runners by unchecking Enable instance runners for this project checkbox on the right side of the page.
  4. Now, on the left side, look for New project runner button and click on it.
  5. On the next page, fill the necessary configurations for your runner instance. For the sake of testing, leave everything blank except for Run untagged jobs.
  6. On the next page, below Step 1 section, copy/save your generated runner authentication token (glrt-xxxxxxxxxxxxxxxxxxxx) as you will need it in a further process of the installation.
  7. You can either leave this page open to ensure GitLab runner registration process was successful (you will see a successful message on the bottom of the page once Ansible playbook scripts succeed) or just close it now.

Setting up the self-hosted runner

If you haven't done so, create a project runner on GitLab.com.

Next, within the project root folder, run the following command:

cp /.iac/inventories/inventory.example ./iac/inventories/inventory.ini

Adjust the newly created .ini file (below ./iac/inventories/) with your server's access info.

Once ready, (navigate to the project root, then) type make build. This triggers the Ansible deployment playbook and your GitLab Runner instance will be ready soon.

You can also trigger individual Ansible playbooks separately as they are specified within the Makefile.

At a certain point of the deployment, you will be prompted to pass your GitLab Runner authentication token. Paste the token created in create a Project runner section.

For now, you are not able to pass extra parameters to the runner configuration via this deployment tool (for example executor, image, etc.). Please, adjust config.toml manually to meet your needs on your self-hosted runner server (/etc/gitlab-runner/config.toml).

Once the installation completes, open your project's CI/CD settings page again and expand Runners section. Under Assigned project runners section on the left side, you should see your recently created runner as connected to the remote server with a green dot signaling the active status.

From now on, running CI/CD pipelines within your project will be redirected to your self-hosted runner without CI/CD compute minutes limit.

Configuring the self-hosted GitLab runner

Coming soon.

gitlab-runner's People

Contributors

andrasbarabas avatar

Watchers

 avatar

gitlab-runner's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.