Cov txheej txheem:

Config TOML GitLab khiav qhov twg?
Config TOML GitLab khiav qhov twg?

Video: Config TOML GitLab khiav qhov twg?

Video: Config TOML GitLab khiav qhov twg?
Video: Gitlab Runner - Create a private runner on Ubuntu 22.04 2024, Kaum ib hlis
Anonim

GitLab Runner configuration siv cov TOML hom ntawv.

Cov ntaub ntawv yuav raug kho tuaj yeem pom hauv:

  • /etc/ gitlab - tus khiav / config .
  • ~/.
  • ./ config .

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav nkag mus rau GitLab khiav li cas?

Txhawm rau tsim ib pab pawg Runner mus saib cov pab pawg koj xav kom Runner ua haujlwm rau hauv GitLab:

  1. Mus rau Chaw> CI / CD kom tau txais lub cim.
  2. Sau npe tus khiav.

Kuj Paub, Kuv yuav sau npe GitLab khiav li cas? Txhawm rau sau npe Runner hauv Windows:

  1. Khiav cov lus txib hauv qab no:
  2. Nkag mus rau lub token koj tau txais los sau npe rau Runner:
  3. Sau cov lus piav qhia rau tus khiav, koj tuaj yeem hloov qhov no tom qab hauv GitLab's UI:
  4. Nkag mus rau cov cim npe cuam tshuam nrog Runner, koj tuaj yeem hloov qhov no tom qab hauv GitLab's UI:
  5. Nkag mus rau Runner executor:

Kuj kom paub yog, qhov twg yog GitLab runner ntsia?

Nruab GitLab Runner ntawm Windows

  1. Tsim ib daim nplaub tshev nyob rau hauv koj lub cev, piv txwv li: C: GitLab-Runner.
  2. Rub tawm binary rau x86 lossis amd64 thiab muab tso rau hauv daim nplaub tshev uas koj tsim.
  3. Khiav ib qho kev hais kom ua kom siab:
  4. Sau npe tus khiav.
  5. Nruab tus Runner ua ib qho kev pabcuam thiab pib nws.
  6. (Optional) Hloov tshiab Runners concurrent value in C:GitLab-Runnerconfig.

GitLab Runner ua haujlwm li cas?

GitLab khiav yog ib qho piv txwv uas yog siv los khiav hauj lwm hla ntau lub tshuab thiab xa cov txiaj ntsig mus rau GitLab thiab uas tuaj yeem muab tso rau ntawm cov neeg siv cais, servers, thiab lub tshuab hauv zos. Koj tuaj yeem ua haujlwm rau koj hauj lwm los ntawm kev siv tshwj xeeb lossis sib koom cov khiav.

Pom zoo: