Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bgelov/gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

gitlab

Some gitlab cheatsheets

Examples

https://docs.gitlab.com/ee/ci/examples/

GitLab Variables

Predefined Variables Docs: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

GitLab Runner

Docs: https://docs.gitlab.com/runner/commands/

gitlab-runner --help
COMMANDS:
 exec execute a build locally
 list List all configured runners
 run run multi runner service
 register register a new runner
 reset-token reset a runner's token
 install install service
 uninstall uninstall service
 start start service
 stop stop service
 restart restart service
** status get status of a service**
sudo gitlab-runner status
Runtime platform arch=amd64 os=linux pid=....... revision=...... version=16.0.2
gitlab-runner: Service is running
 run-single start single runner
 unregister unregister specific runner
** verify verify all registered runners**
sudo gitlab-runner verify
Runtime platform arch=amd64 os=linux pid=....... revision=...... version=16.0.2
Running in system-mode.
Verifying runner... is alive runner=.......
 artifacts-downloader download and extract build artifacts (internal)
 artifacts-uploader create and upload build artifacts (internal)
 cache-archiver create and upload cache artifacts (internal)
 cache-extractor download and extract cache artifacts (internal)
 cache-init changed permissions for cache paths (internal)
 health-check check health for a specific address
 read-logs reads job logs from a file, used by kubernetes executor (internal)
 help, h Shows a list of commands or help for one command

Gitlab Runner Executors

Docs: https://docs.gitlab.com/runner/executors/

SSH
Shell
Parallels
VirtualBox
Docker (https://docs.gitlab.com/runner/install/docker.html)
- Use kaniko: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html
- error during connect: Get "http://docker..." dial tcp: lookup docker on ... no such host 
Add to .toml docker.sock: volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
Docker Autoscaler (experiment)
Docker Machine (auto-scaling)
- Use kaniko: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html
Kubernetes
- Use kaniko: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html
Instance (experiment)
Custom

image

image

About

Some gitlab cheatsheets

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /