Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bgelov/gitlab
- Owner: bgelov
- License: cc0-1.0
- Created: 2023-08-08T23:42:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-10T16:22:10.000Z (over 1 year ago)
- Last Synced: 2024-11-09T07:41:25.517Z (3 months ago)
- Topics: gitlab, gitlab-ci, gitlab-ci-pipeline
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 --helpCOMMANDS:
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 runningrun-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
VirtualBoxDocker (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.htmlKubernetes
- Use kaniko: https://docs.gitlab.com/ee/ci/docker/using_kaniko.htmlInstance (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)