Различия
Показаны различия между двумя версиями страницы.
| Следующая версия | Предыдущая версия | ||
| develop:kubernetes [2025/01/05 20:05] – создано mirocow | develop:kubernetes [2025/01/05 20:09] (текущий) – mirocow | ||
|---|---|---|---|
| Строка 28: | Строка 28: | ||
| На всех вопросах можно оставлять стандартные ответы, | На всех вопросах можно оставлять стандартные ответы, | ||
| + | |||
| + | .gitlab-ci.yml | ||
| + | <code yaml> | ||
| + | stages: | ||
| + | - build | ||
| + | - deploy | ||
| + | - dismiss | ||
| + | - cleanup | ||
| + | |||
| + | before_script: | ||
| + | - type trdl && . $(trdl use werf 1.2 stable) | ||
| + | - type werf && source $(werf ci-env gitlab --as-file) | ||
| + | |||
| + | Build and Publish: | ||
| + | stage: build | ||
| + | script: | ||
| + | - werf build | ||
| + | except: [schedules] | ||
| + | tags: [werf] | ||
| + | |||
| + | .base_deploy: | ||
| + | stage: deploy | ||
| + | script: | ||
| + | - werf converge --require-built-images --set " | ||
| + | except: [schedules] | ||
| + | tags: [werf] | ||
| + | |||
| + | Deploy to Production: | ||
| + | extends: .base_deploy | ||
| + | environment: | ||
| + | name: production | ||
| + | url: https:// | ||
| + | only: [main] | ||
| + | </ | ||
| + | |||
| + | ===== Документация ===== | ||
| + | |||
| + | * https:// | ||
| + | |||