[runner_gitlab-runner] name=runner_gitlab-runner baseurl=https://packages.gitlab.com/runner/gitlab-runner/ol/8/$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-4C80FB51394521E9.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 |
[root@my-ol8 ~]# gitlab-runner register --url https://my-gitlab.domain.com/ --registration-token spjXy5TgxV13kTjVXA Runtime platform arch=x86_64 os=linux version=15.5.1 Running in system-mode. Enter the GitLab instance URL (for example, https://gitlab.com/): [https://my-gitlab.domain.com/]: press enter to accept defaults Enter the registration token: [spjXy5TgxV13kTjVXA]: Enter a description for the runner: [my-ol8]: Enter tags for the runner (comma-separated): test, dev, qa (just some examples) Enter optional maintenance note for the runner: Runner for testing Registering runner... succeeded runner=spjXy_5T Enter an executor: ssh, virtualbox, instance, kubernetes, docker-ssh, parallels, shell, docker+machine, docker: shell Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! Configuration (with the authentication token) was saved in "/etc/gitlab-runner/config.toml" |
log_level = "debug" log_format = "text" concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = "my-ol8.domain.com" url = "https://my-gitlab.domain.com/" id = 2832 token = "nwBZK1JS15netcL5aUrd" token_obtained_at = 2022-11-18T16:46:47Z token_expires_at = 0001-01-01T00:00:00Z executor = "shell" |
--- # GitLab predefined variables # https://docs.gitlab.com/ee/ci/variables/predefined_variables.html # Keywords for .gitlab-ci.yml # https://docs.gitlab.com/ee/ci/yaml/ stages: - build - test - deploy build-job: stage: build before_script: - echo "My on-prem GitLab server version is $CI_SERVER_VERSION_MAJOR" - echo "My GitLab project/repo is $CI_PROJECT_TITLE" - echo "My Runner version is $CI_RUNNER_VERSION" script: - echo "Nothing to build!" yamllint-job: stage: test script: - echo "Start my python virtual environment ..." - source /python-venv/molecule/bin/activate - echo "Start yamllint ..." - yamllint . - echo "Done with yamllint ..." ansible-lint-job: stage: test script: - echo "Start again my python virtual environment ..." - source /python-venv/molecule/bin/activate - echo "Start ansible-lint ..." - ansible-lint . - echo "Done with ansible-lint ..." deploy-job: stage: deploy script: - echo "Nothing to deploy ..." ... |