Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bgelov/gitlab

Some gitlab cheatsheets
https://github.com/bgelov/gitlab

gitlab gitlab-ci gitlab-ci-pipeline

Last synced: about 1 month ago
JSON representation

Some gitlab cheatsheets

Awesome Lists containing this project

README

        

# 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](https://github.com/bgelov/gitlab/assets/5302940/982583ac-6f9d-4354-9834-f39aea9b4d4c)

![image](https://github.com/bgelov/gitlab/assets/5302940/b23cc971-dddc-48fa-91e7-0ff12cc233a2)