This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
инструмент_gitlab [2026/06/15 09:11] val [Настройка отправки почты] |
инструмент_gitlab [2026/09/01 13:25] (current) val [Пример CI/CD с использованием ИИ] |
||
|---|---|---|---|
| Line 150: | Line 150: | ||
| <code> | <code> | ||
| - | ### docker exec -it root_web_1 bash | + | ### docker exec -it root-gitlab-1 bash |
| ### kubectl -n my-gitlab-ns exec -ti deployment/gitlab -- bash | ### kubectl -n my-gitlab-ns exec -ti deployment/gitlab -- bash | ||
| Line 432: | Line 432: | ||
| * [[https://medium.com/@ryzmen/gitlab-fast-pipelines-stages-jobs-c51c829b9aa1|GitLab: understanding pipelines, stages, jobs and organising them efficiently for speed and feedback loop]] | * [[https://medium.com/@ryzmen/gitlab-fast-pipelines-stages-jobs-c51c829b9aa1|GitLab: understanding pipelines, stages, jobs and organising them efficiently for speed and feedback loop]] | ||
| * [[https://stackoverflow.com/questions/64725914/how-to-disable-auto-pipelines-in-gitlab|How to disable auto pipelines in gitlab]] | * [[https://stackoverflow.com/questions/64725914/how-to-disable-auto-pipelines-in-gitlab|How to disable auto pipelines in gitlab]] | ||
| + | * [[Самый простой пример CI/CD]] | ||
| ==== Пример shell make ==== | ==== Пример shell make ==== | ||
| Line 854: | Line 855: | ||
| # trigger: | # trigger: | ||
| # project: student/gowebd-k8s | # project: student/gowebd-k8s | ||
| + | </code> | ||
| + | |||
| + | ==== Пример CI/CD с использованием ИИ ==== | ||
| + | |||
| + | * [[Самый простой пример CI/CD]] | ||
| + | * [[OpenCode]] | ||
| + | |||
| + | <code> | ||
| + | gitlab-runner@gate:~$ cat ~/.config/opencode/opencode.jsonc | ||
| + | </code><code> | ||
| + | stages: | ||
| + | - test | ||
| + | - test-ai | ||
| + | - deploy | ||
| + | ... | ||
| + | test1-ai-job: | ||
| + | stage: test-ai | ||
| + | script: | ||
| + | - > | ||
| + | ~/.opencode/bin/opencode run --agent plan | ||
| + | " | ||
| + | проверь синтаксис файла permit_domains.txt в текущем каталоге, | ||
| + | используется для acl dstdomain squid 6, | ||
| + | объясни если есть ошибки, не задавай вопросы, не запускай, не исправляй, | ||
| + | заверши ответ новой строкой строго со слова FAIL или SUCCESS | ||
| + | " | ||
| + | | tee opencode_log.txt | ||
| + | - tail -n2 opencode_log.txt|grep SUCCESS | ||
| + | tags: | ||
| + | - squid-tag | ||
| + | ... | ||
| </code> | </code> | ||
| ===== Сервер OpenID ===== | ===== Сервер OpenID ===== | ||