{"id":485082,"date":"2026-06-25T18:22:30","date_gmt":"2026-06-25T18:22:30","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=485082"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=485082","title":{"rendered":"Best Practices \u043f\u043e GitLab CI\/CD: \u043e\u0442 workflow:rules \u0438 \u043a\u0435\u0448\u0430 \u0434\u043e OIDC, BuildKit, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439: \u043f\u0440\u0430\u043a\u0442\u0438\u043a \u043c\u043d\u043e\u0433\u043e, \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0432\u0430\u0436\u043d\u0430 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0431\u043e\u0440 best practices: \u043d\u0435 \u0432\u0441\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u043d\u0443\u0436\u043d\u044b \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0440\u0435\u0432\u044c\u044e, \u043f\u0440\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0443\u0442\u0435\u0447\u043a\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u044f\u0436\u0435\u043b\u043e\u0433\u043e \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u0430.<\/p>\n<p>\u042f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0433\u0440\u0435\u0439\u0434\u043e\u0432: \u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0433\u0438\u0433\u0438\u0435\u043d\u044b \u0432\u0440\u043e\u0434\u0435 <code>workflow:rules<\/code>, <code>cache<\/code>, <code>artifacts<\/code> \u0438 <code>needs<\/code> \u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u043e\u0432\u044b\u0445 \u0442\u0435\u043c \u0432\u0440\u043e\u0434\u0435 OIDC, Vault, <code>CI_JOB_TOKEN<\/code>, \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439 \u0441\u043b\u0438\u044f\u043d\u0438\u044f, BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432, CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f\u0437\u044b\u043a \u043f\u043e\u0434\u0430\u0447\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0443\u0445\u043e\u0439, \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0439: \u0431\u0435\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0437\u0430\u0445\u043e\u0434\u043e\u0432, \u0431\u0435\u0437 \u0432\u043e\u0434\u044b \u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0440\u0430\u0434\u0438 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u0430. \u042f \u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u0437\u043e\u0440\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e, \u0430 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u043a\u0443, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u0440\u0435\u0432\u044c\u044e <code>.gitlab-ci.yml<\/code>, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 GitLab \u0438\u043b\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0432 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 CI\/CD-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u044f \u0440\u0430\u0437\u0431\u0438\u043b \u0435\u0451 \u043d\u0430 \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u044b\u0435 \u0431\u043b\u043e\u043a\u0438. \u041d\u0438\u0436\u0435 \u043e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \u043d\u0430\u0436\u0430\u043b\u0438 \u043d\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u2014 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0443.<\/p>\n<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<ol>\n<li>\n<p><a href=\"#%D0%BE%D0%B4%D0%B8%D0%BD\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e GitLab CI\/CD<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B4%D0%B2%D0%B0\" rel=\"noopener noreferrer nofollow\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f YAML-\u0433\u0438\u0433\u0438\u0435\u043d\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%82%D1%80%D0%B8\" rel=\"noopener noreferrer nofollow\"><code>rules<\/code>, <code>workflow:rules<\/code> \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B5%D1%82%D1%8B%D1%80%D0%B8\" rel=\"noopener noreferrer nofollow\">DAG, <code>needs<\/code>, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c, \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%BF%D1%8F%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435: <code>extends<\/code>, \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%88%D0%B5%D1%81%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">Parent\/child \u0438 multi-project \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%81%D0%B5%D0%BC%D1%8C\" rel=\"noopener noreferrer nofollow\">\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u0435\u0448, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B2%D0%BE%D1%81%D0%B5%D0%BC%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, BuildKit, Dependency Proxy \u0438 \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B4%D0%B5%D0%B2%D1%8F%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0434\u0435\u043f\u043b\u043e\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B4%D0%B5%D1%81%D1%8F%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">MR, merged results pipelines \u0438 merge trains<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%BE%D0%B4%D0%B8%D0%BD%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u0441\u0435\u043a\u0440\u0435\u0442\u044b, OIDC, Vault \u0438 <code>CI_JOB_TOKEN<\/code><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B4%D0%B2%D0%B5%D0%BD%D0%B0%D0%B4%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u043d\u043d\u0435\u0440\u044b, \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u0438 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%82%D1%80%D0%B8%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u041e\u0442\u0447\u0451\u0442\u044b, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B5%D1%82%D1%8B%D1%80%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 <code>.gitlab-ci.yml<\/code><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%BF%D1%8F%D1%82%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u041f\u043b\u0430\u043d \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%88%D0%B5%D1%81%D1%82%D0%BD%D0%B0%D1%86%D0%B0%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u0414\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/1041784\/\" rel=\"noopener noreferrer nofollow\"><strong>Best Practices \u043f\u043e\u00a0Dockerfile: \u043e\u0442\u00a0\u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u0438 \u043a\u0435\u0448\u0430 \u0434\u043e\u00a0SBOM, Cosign \u0438 CI\/CD<\/strong><\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong><em><u>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0430\u0448\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u0435\u0439\u0441\u0430\u043c, \u0441\u043f\u043e\u0440\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c, \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u043e\u0448\u0438\u0431\u043a\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u043b\u0438 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438, \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c. \u042f \u0447\u0438\u0442\u0430\u044e \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b: \u0443\u0442\u043e\u0447\u043d\u044f\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u044c\u044e \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438 \u0442\u043e\u0447\u043d\u0435\u0435.<\/u><\/em><\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%BE%D0%B4%D0%B8%D0%BD\" id=\"\u043e\u0434\u0438\u043d\"><\/a><\/p>\n<h3>1. \u0417\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e GitLab CI\/CD<\/h3>\n<p>GitLab CI\/CD \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"yaml\">stages:  - build  - test  - deploy<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0445\u0432\u0430\u0442\u0430\u0435\u0442. \u0415\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0430, \u0435\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u044b, \u0435\u0441\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439. \u041d\u043e \u043f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0412 \u043d\u0451\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u043a\u0435\u0448\u0438, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b, \u0441\u0435\u043a\u0440\u0435\u0442\u044b, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0435\u043f\u043b\u043e\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, release-\u0434\u0436\u043e\u0431\u044b \u0438 \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 GitLab CI\/CD \u043e\u0431\u044b\u0447\u043d\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443. \u041e\u043d \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0440\u043e\u0433\u0438\u043c, \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b\u043c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0436\u0434\u0451\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d 40 \u043c\u0438\u043d\u0443\u0442. \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0432\u0435\u0442\u043e\u043a \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432. \u041f\u043e\u0442\u043e\u043c \u043e\u0434\u0438\u043d \u0434\u0436\u043e\u0431 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442. \u0417\u0430\u0442\u0435\u043c \u0434\u0432\u0430 \u0434\u0435\u043f\u043b\u043e\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435. \u041f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u0431\u0449\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u043f\u043e <code>main<\/code>, \u0432\u0447\u0435\u0440\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0438 \u0441\u043b\u043e\u043c\u0430\u043b \u0432\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 GitLab CI\/CD \u0440\u0435\u0448\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0447 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e:<\/p>\n<ol>\n<li>\n<p><strong>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c.<\/strong> \u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043c\u043c\u0438\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d. \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0435\u0448\u0430, \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u043b\u0438 \u043d\u0435\u044f\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u044d\u0442\u043e \u0443\u0436\u0435 \u0440\u0438\u0441\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c.<\/strong> \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0441\u043b\u043e\u043c\u0430\u043b \u043b\u0438 \u043e\u043d \u043a\u043e\u0434, \u0441\u0442\u0438\u043b\u044c, \u0442\u0435\u0441\u0442\u044b, \u0441\u0431\u043e\u0440\u043a\u0443 \u0438\u043b\u0438 \u0434\u0435\u043f\u043b\u043e\u0439. \u0427\u0435\u043c \u043f\u043e\u0437\u0436\u0435 \u043f\u0430\u0434\u0430\u0435\u0442 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0442\u0435\u043c \u0434\u043e\u0440\u043e\u0436\u0435 \u043e\u043d\u0430 \u0441\u0442\u043e\u0438\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c.<\/strong> \u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c, \u0442\u043e\u043a\u0435\u043d\u0430\u043c, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c, \u0440\u0435\u0435\u0441\u0442\u0440\u0443, \u043e\u0431\u043b\u0430\u043a\u0430\u043c \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u043c. \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e, \u044d\u0442\u043e \u043d\u0435 \u00ab\u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f\u00bb.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0430\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430.<\/strong> \u0414\u0435\u043f\u043b\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c \u043f\u043e \u043f\u0440\u0430\u0432\u0430\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0440\u0435\u0447\u044c \u043f\u0440\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433, \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0438 Kubernetes.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c.<\/strong> <code>.gitlab-ci.yml<\/code> \u0434\u043e\u043b\u0436\u0435\u043d \u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0432\u0442\u043e\u0440. \u0415\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, DevOps, SRE, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u043e\u0432\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044c \u0442\u0443\u0442 \u0442\u0430\u043a\u0430\u044f: CI\/CD \u2014 \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0441\u0442\u043e, \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c bash-\u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u042d\u0442\u043e \u0441\u043b\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B4%D0%B2%D0%B0\" id=\"\u0434\u0432\u0430\"><\/a><\/p>\n<h3>2. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f YAML-\u0433\u0438\u0433\u0438\u0435\u043d\u0430<\/h3>\n<h4>2.1. \u0414\u0435\u0440\u0436\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 .gitlab-ci.yml \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c<\/h4>\n<p>\u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 <code>.gitlab-ci.yml<\/code> \u2014 \u044d\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 CI\/CD-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0441\u0442\u0430\u0434\u0438\u0438 \u0435\u0441\u0442\u044c \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0434\u0436\u043e\u0431\u044b \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a lint\/test\/\u0441\u0431\u043e\u0440\u043a\u0430\/\u0434\u0435\u043f\u043b\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0436\u043e\u0431\u0430\u043c\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f \u0432\u0435\u0442\u043e\u043a, MR, \u0442\u0435\u0433\u043e\u0432 \u0438 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u044b\u043d\u044e \u0438\u0437 \u0441\u043e\u0442\u0435\u043d \u0441\u0442\u0440\u043e\u043a bash, \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">include:  - local: .gitlab\/ci\/lint.yml  - local: .gitlab\/ci\/test.yml  - local: .gitlab\/ci\/build.yml  - local: .gitlab\/ci\/deploy.ymlstages:  - lint  - test  - build  - deploy<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0439, \u0430 \u043d\u0435 \u0441\u0432\u0430\u043b\u043a\u043e\u0439. \u0414\u0435\u0442\u0430\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043d\u043e \u0441\u0430\u043c\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439.<\/p>\n<h4>2.2. \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0435 \u0432 default, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u043c\u0443\u0441\u043e\u0440\u043d\u0443\u044e \u043a\u043e\u0440\u0437\u0438\u043d\u0443<\/h4>\n<p><code>default<\/code> \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0434\u0436\u043e\u0431\u043e\u0432: \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432, \u043a\u0435\u0448, \u0442\u0435\u0433\u0438, <code>before_script<\/code>, timeout \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">default:  image: node:22-bookworm-slim  interruptible: true  before_script:    - node --version    - npm --version<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 <code>image<\/code> \u0438 <code>before_script<\/code> \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0436\u043e\u0431. \u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u0440\u0430\u0439\u043d\u043e\u0441\u0442\u044c: \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432 <code>default<\/code> \u0432\u0441\u0451 \u043f\u043e\u0434\u0440\u044f\u0434. \u0427\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u0448\u0430\u043d\u0441, \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0436\u043e\u0431 \u043d\u0430\u0447\u043d\u0451\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 <code>default<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u044f\u0432\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"yaml\">release:  inherit:    default: false  image: alpine:3.20  script:    - .\/release.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"yaml\">sensitive-check:  inherit:    variables: false  script:    - .\/run-isolated-check.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0425\u043e\u0440\u043e\u0448\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u2014 \u043d\u0435 \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0430 \u044f\u0432\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0433\u0434\u0435 \u0434\u0436\u043e\u0431 \u0436\u0438\u0432\u0451\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h4>2.3. \u041d\u0435 \u0445\u0430\u0440\u0434\u043a\u043e\u0434\u044c\u0442\u0435 main, master \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0451\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0435 \u0437\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e <code>main<\/code>, <code>master<\/code>, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0433\u0440\u0443\u043f\u043f, \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">rules:  - if: $CI_COMMIT_BRANCH == \"main\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">rules:  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>$CI_DEFAULT_BRANCH<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0439. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043e\u0431\u0449\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0432\u0435\u0442\u043a\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0442\u043e\u0447\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u044f\u0432\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0418\u043d\u0430\u0447\u0435 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c, \u043d\u043e \u043b\u043e\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432\u0435\u0442\u043e\u043a.<\/p>\n<h4>2.4. \u041f\u0438\u0448\u0438\u0442\u0435 shell-\u0431\u043b\u043e\u043a\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c<\/h4>\n<p>CI\/CD \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 bash-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 YAML. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 shell-\u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0434\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">script:  - apk add curl jq bash &amp;&amp; curl -sSL https:\/\/example.com\/script.sh | bash &amp;&amp; .\/deploy.sh prod<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">script:  - |    set -euo pipefail    apk add --no-cache curl jq bash    curl -fsSLo \/tmp\/script.sh https:\/\/example.com\/script.sh    chmod +x \/tmp\/script.sh    \/tmp\/script.sh    .\/deploy.sh prod<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u043e\u0439 \u0434\u0436\u043e\u0431 \u043f\u0440\u043e\u0449\u0435 \u0447\u0438\u0442\u0430\u0442\u044c, \u043f\u0440\u043e\u0449\u0435 \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0449\u0435 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u043f\u0440\u043e \u0434\u0435\u043f\u043b\u043e\u0439, \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438, \u0432\u043d\u0435\u0448\u043d\u0438\u0435 API \u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0435\u043b\u0438\u0437\u043e\u0432.<\/p>\n<h4>2.5. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 CI-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043e merge<\/h4>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u0432 <code>.gitlab-ci.yml<\/code> \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043b\u043e\u043c\u0430\u044e\u0442 \u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0430 \u0441\u0430\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 CI Lint, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 expressions \u0438 \u0440\u0435\u0432\u044c\u044e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 CI-\u0444\u0430\u0439\u043b\u0430\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 CI-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 CODEOWNERS \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a. \u0415\u0441\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>.gitlab-ci.yml<\/code>, \u043e\u043d \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0443\u0432\u0438\u0434\u044f\u0442 \u0434\u0436\u043e\u0431\u044b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 CODEOWNERS:<\/p>\n<pre><code>.gitlab-ci.yml       @platform-team @security-team.gitlab\/ci\/**        @platform-team @security-team<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c. \u0414\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u0438\u0433\u0438\u0435\u043d\u0430.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%82%D1%80%D0%B8\" id=\"\u0442\u0440\u0438\"><\/a><\/p>\n<h3>3. rules, workflow:rules \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430<\/h3>\n<h4>3.1. \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 workflow:rules<\/h4>\n<p>\u0422\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0449\u0438:<\/p>\n<ul>\n<li>\n<p><code>workflow:rules<\/code> \u0440\u0435\u0448\u0430\u0435\u0442, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u043e\u043e\u0431\u0449\u0435;<\/p>\n<\/li>\n<li>\n<p><code>rules<\/code> \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430 \u0440\u0435\u0448\u0430\u044e\u0442, \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0436\u043e\u0431 \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <code>rules<\/code> \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445. \u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0443\u0431\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u0435\u0442\u043e\u043a \u0438 MR, \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a.<\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0437\u0440\u0435\u043b\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0434\u043b\u044f \u0432\u0435\u0442\u043a\u0438 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MR:<\/p>\n<pre><code class=\"yaml\">workflow:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == \"push\"      when: never    - if: $CI_COMMIT_BRANCH<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044d\u0442\u043e MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044d\u0442\u043e push-based \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438, \u043d\u043e \u043f\u043e \u0432\u0435\u0442\u043a\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 MR \u2014 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0431\u0435\u0437 MR \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 <code>&amp;&amp; $CI_PIPELINE_SOURCE == \"push\"<\/code> \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c, API, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438 downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c <code>$CI_COMMIT_BRANCH<\/code>, \u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0422\u0430\u043a GitLab \u043d\u0435 \u0433\u043e\u043d\u044f\u0435\u0442 \u0434\u0432\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043c\u043c\u0438\u0442: \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043d\u043e \u043d\u0435 \u043b\u043e\u043c\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432.<\/p>\n<h4>3.2. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CI_PIPELINE_SOURCE \u043a\u0430\u043a \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043b\u043e\u0433\u0438\u043a\u0438<\/h4>\n<p><code>CI_PIPELINE_SOURCE<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0451\u043b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d: push, MR, schedule, API, trigger, parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 <code>web<\/code>-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0434\u043b\u044f \u0432\u0435\u0442\u043e\u043a \u0438 \u0442\u0435\u0433\u043e\u0432 \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c, \u0430 \u043e\u0431\u0449\u0438\u043c\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043f\u043e <code>$CI_COMMIT_BRANCH<\/code> \u0438 <code>$CI_COMMIT_TAG<\/code>. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 <code>external<\/code> \u0438 <code>external_pull_request_event<\/code> \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f: \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 pull request, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u043f\u043e <code>CI_PIPELINE_SOURCE<\/code>.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0434\u043a\u0438\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 <code>chat<\/code>, <code>webide<\/code> \u0438 <code>security_orchestration_policy<\/code>. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u043d\u0438 \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e: \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438, \u0438 \u0434\u043b\u044f \u043d\u0438\u0445 \u043b\u0443\u0447\u0448\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<p>\u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0434\u043e\u0433\u0430\u0434\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0435\u0442\u043a\u0435 \u0438\u043b\u0438 \u0442\u0435\u0433\u0443.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">nightly-tests:  rules:    - if: $CI_PIPELINE_SOURCE == \"schedule\"  script:    - .\/run-nightly-tests.shmr-checks:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"  script:    - .\/run-mr-checks.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u043c: \u0434\u0436\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u00ab\u0442\u0430\u043a \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435\u00bb, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u044f\u0432\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<h4>3.3. \u041d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0439\u0442\u0435 rules \u0448\u0438\u0440\u043e\u043a\u0438\u043c when: always \u0431\u0435\u0437 \u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e workflow<\/h4>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0447\u0430\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d \u0434\u0443\u0431\u043b\u0435\u0439 \u2014 <code>rules<\/code> \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0448\u0438\u0440\u043e\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">test:  rules:    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH    - when: always  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u043e\u0439 \u0434\u0436\u043e\u0431 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 <code>workflow<\/code>. \u0412 \u0438\u0442\u043e\u0433\u0435 push \u0432 \u0432\u0435\u0442\u043a\u0443 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c MR \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438, \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 <code>workflow:rules<\/code>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0434\u0436\u043e\u0431\u044b.<\/p>\n<h4>3.4. \u041d\u0435 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0439\u0442\u0435 rules \u0438 only\/except<\/h4>\n<p><code>only\/except<\/code> \u2014 \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441. \u0412 \u0441\u0442\u0430\u0440\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043e\u043d \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u043e, \u043d\u043e \u0432 \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>rules<\/code> \u0438 <code>workflow:rules<\/code>.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e <code>rules<\/code> \u0433\u0438\u0431\u0447\u0435. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0441\u043c\u0435\u0448\u0435\u043d\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439. \u0414\u0436\u043e\u0431\u044b \u0441 <code>rules<\/code> \u0438 \u0434\u0436\u043e\u0431\u044b \u0441 <code>only\/except<\/code> \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u0438\u0445 \u0434\u0436\u043e\u0431\u043e\u0432 \u043c\u043d\u043e\u0433\u043e, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0434\u0438\u043d \u0434\u0436\u043e\u0431 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043d\u0435\u0442.<\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441: \u0434\u0436\u043e\u0431\u044b \u0431\u0435\u0437 <code>rules<\/code> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a <code>except: merge_requests<\/code>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u0435\u0441\u0442\u044c \u0434\u0436\u043e\u0431\u044b \u0441 <code>rules<\/code>, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u043e\u0434\u0438\u043d push \u0432 \u0432\u0435\u0442\u043a\u0443 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c MR \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u0434\u0432\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430: \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0434\u0436\u043e\u0431\u043e\u0432 \u0431\u0435\u0437 <code>rules<\/code> \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0434\u043b\u044f \u0434\u0436\u043e\u0431\u043e\u0432 \u0441 <code>rules<\/code>.<\/p>\n<p>\u0426\u0435\u043b\u0435\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435:<\/p>\n<pre><code class=\"yaml\">workflow:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == \"push\"      when: never    - if: $CI_COMMIT_BRANCHlint:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH  script:    - npm run lint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439, \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e. \u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0433\u0438\u0431\u0440\u0438\u0434 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<h4>3.5. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 rules:changes, compare_to \u0438 exists<\/h4>\n<p>\u041d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0430\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0433\u043e\u043d\u044f\u0442\u044c backend tests. \u0415\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f frontend, \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Go-\u0441\u0435\u0440\u0432\u0438\u0441.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">backend-tests:  rules:    - changes:        - backend\/**\/*        - go.mod        - go.sum  script:    - go test .\/...frontend-tests:  rules:    - changes:        - frontend\/**\/*        - package-lock.json  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u043c\u043e\u043d\u043e\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e. <code>rules:changes<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0431\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u044b.<\/p>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043c\u043e\u043d\u043e\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e \u043b\u0438\u043c\u0438\u0442\u044b: GitLab \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043f\u043e <code>rules:changes<\/code>, \u0430 \u043d\u0430 \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a <code>rules:changes<\/code> \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438\u043c\u0438\u0442 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0443\u0442\u0435\u0439 \u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432. \u041d\u0430 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043d\u0430\u0431\u043e\u0440\u0430\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c <code>changes<\/code> \u0432 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0440\u0430\u0437\u0440\u043e\u0437\u043d\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0431\u0430\u0437\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>compare_to<\/code>. \u041d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u043d\u044e\u0430\u043d\u0441 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u044f: \u0442\u0430\u043c \u0431\u0430\u0437\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c merge-\u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c, \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u043e\u0433\u0443\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0448\u0438\u0440\u0435, \u0447\u0435\u043c \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u0432\u0435\u0442\u043a\u0438.<\/p>\n<p><code>exists<\/code> \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432:<\/p>\n<pre><code class=\"yaml\">node-tests:  rules:    - exists:        - package.json  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0438 \u0434\u0436\u043e\u0431 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043c, \u0433\u0434\u0435 \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b.<\/p>\n<h4>3.6. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u043d\u043e\u0432\u044b\u0435 MR<\/h4>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0435 \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0442\u044f\u0436\u0451\u043b\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0447\u0435\u0440\u043d\u043e\u0432\u043e\u0439 MR.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">workflow:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_DRAFT == \"true\"      when: never    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == \"push\"      when: never    - if: $CI_COMMIT_BRANCH<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<pre><code>\u042d\u0442\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043c\u0438\u043d\u0443\u0442\u044b \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0448\u0443\u043c. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u0447\u0442\u043e \u0447\u0435\u0440\u043d\u043e\u0432\u043e\u0439 MR \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0434\u043e \u0433\u043e\u043d\u044f\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 CI.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: <code>$CI_MERGE_REQUEST_DRAFT<\/code> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 GitLab 17.10. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f GitLab, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 <code>$CI_MERGE_REQUEST_TITLE<\/code> \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0443 MR.<\/p>\n<h4>3.7. \u0414\u043b\u044f \u0440\u0443\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/h4>\n<p>\u0414\u043b\u044f \u0440\u0443\u0447\u043d\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b CI\/CD, \u0430 \u043d\u0435 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0431\u0435\u0437 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0443\u0434\u043e\u0431\u043d\u044b, \u043a\u043e\u0433\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0436\u043e\u0431\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438\u043b\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435, \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u0430\u044e\u0442 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0440\u043e\u0433\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442:<\/p>\n<p>\u0414\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e: GitLab \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0440\u0443\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 pipeline inputs, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 pipeline variables. \u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u0442\u0440\u043e\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u043b\u044f \u0434\u0435\u043f\u043b\u043e\u044f, \u043e\u0442\u043a\u0430\u0442\u0430 \u0438\u043b\u0438 maintenance-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, <code>inputs<\/code> \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<ul>\n<li>\n<p>\u0442\u0438\u043f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">spec:  inputs:    target_environment:      default: staging      options:        - staging        - production      description: \"\u041a\u0443\u0434\u0430 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\"    run_migrations:      type: boolean      default: false      description: \"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043b\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438\"---deploy:  script:    - .\/deploy.sh \"$[[ inputs.target_environment ]]\"    - |      if [ \"$[[ inputs.run_migrations ]]\" = \"true\" ]; then        .\/migrate.sh \"$[[ inputs.target_environment ]]\"      fi<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0440\u0443\u0447\u043d\u044b\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0432, \u0440\u0435\u043b\u0438\u0437\u043e\u0432, \u043e\u0442\u043a\u0430\u0442\u043e\u0432 \u0438 maintenance-\u0434\u0436\u043e\u0431\u043e\u0432.<\/p>\n<p>\u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b CI\/CD \u0441\u0442\u0430\u043b\u0438 \u043e\u0431\u0449\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0432 GitLab 17.0. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0440\u043e\u0434\u0435 <code>spec:inputs:rules<\/code>, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0437\u0436\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u0433\u043e GitLab \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0432\u0435\u0436\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B5%D1%82%D1%8B%D1%80%D0%B8\" id=\"\u0447\u0435\u0442\u044b\u0440\u0438\"><\/a><\/p>\n<h3>4. DAG, needs, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c, \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/h3>\n<h4>4.1. \u041d\u0435 \u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0432\u0435\u0441\u044c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u044f\u0445<\/h4>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u0442\u0430\u0434\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<\/p>\n<pre><code class=\"yaml\">stages:  - lint  - test  - build  - deploy<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0443 \u043d\u0435\u0451 \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435: \u0434\u0436\u043e\u0431\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0436\u0434\u0443\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438. \u0415\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0434\u043e\u043b\u0433\u0438\u0439 \u0434\u0436\u043e\u0431 \u0432 <code>test<\/code> \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043e\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<p><code>needs<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0436\u043e\u0431\u0430\u043c\u0438, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0443\u0431\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u0430\u0434\u0438\u0439.<\/p>\n<pre><code class=\"yaml\">lint:  stage: lint  needs: []  script:    - npm run lintunit-tests:  stage: test  needs: []  script:    - npm testbuild:  stage: build  needs:    - unit-tests  script:    - npm run build<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>needs: []<\/code> \u0433\u043e\u0432\u043e\u0440\u0438\u0442 GitLab: \u0434\u0436\u043e\u0431 \u043d\u0435 \u0436\u0434\u0451\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0434\u0438\u0439 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0441 \u0440\u0430\u043d\u043d\u0438\u043c \u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c.<\/p>\n<h4>4.2. \u0421\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441 \u0440\u0430\u043d\u043d\u0438\u043c \u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u043d\u043e<\/h4>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441\u0445\u0435\u043c\u044b, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043c\u0438\u0442\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 smoke-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e, \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d 30 \u043c\u0438\u043d\u0443\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0437, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 <code>prettier<\/code> \u0438\u043b\u0438 YAML-lint.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">stages:  - validate  - test  - build  - deploylint-yaml:  stage: validate  needs: []  script:    - yamllint .lint-code:  stage: validate  needs: []  script:    - npm run lint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0420\u0430\u043d\u043d\u0435\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u042d\u0442\u043e \u0435\u0449\u0451 \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u043b\u043e\u043c\u0430\u043b.<\/p>\n<h4>4.3. \u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c, \u0430 \u043d\u0435 \u00ab\u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u0436\u043e\u0431\u043e\u0432\u00bb<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0434\u043b\u0438\u0442\u0441\u044f 40 \u043c\u0438\u043d\u0443\u0442, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0436\u043e\u0431\u044b. \u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c \u2014 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0434\u0436\u043e\u0431 \u0434\u043b\u0438\u0442\u0441\u044f 15 \u043c\u0438\u043d\u0443\u0442, \u043d\u043e \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0430\u0436\u043d\u043e\u0433\u043e. \u0410 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0436\u043e\u0431 \u0434\u043b\u0438\u0442\u0441\u044f 5 \u043c\u0438\u043d\u0443\u0442, \u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u0434\u0435\u043f\u043b\u043e\u0439.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0433\u0440\u0430\u0444 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0433\u0440\u0430\u0444 <code>needs<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u0441\u0442\u0430\u0434\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0440\u0435\u043c\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443\/\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0433\u0430\u0434\u0430\u0439\u043a\u0443.<\/p>\n<h4>4.4. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 needs, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u0439\u0442\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u044f\u0445, GitLab \u043c\u043e\u0436\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0434\u0438\u0439. \u041d\u043e \u0441 DAG \u0447\u0435\u0440\u0435\u0437 <code>needs<\/code> \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u044f\u0432\u043d\u0435\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">build:  stage: build  script:    - npm run build  artifacts:    paths:      - dist\/deploy:  stage: deploy  needs:    - job: build      artifacts: true  script:    - .\/deploy.sh dist\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u043d\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u0445:<\/p>\n<pre><code class=\"yaml\">lint:  stage: test  dependencies: []  script:    - npm run lint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0438\u0448\u043d\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u2014 \u044d\u0442\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0448\u0443\u043c, \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0434\u0436\u043e\u0431\u0435.<\/p>\n<h4>4.5. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 needs:optional, \u0435\u0441\u043b\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0435 \u0434\u0436\u043e\u0431 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u0436\u043e\u0431\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u0437-\u0437\u0430 <code>rules<\/code>, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<pre><code class=\"yaml\">build-docs:  rules:    - changes:        - docs\/**\/*  script:    - .\/build-docs.shpublish-docs:  needs:    - build-docs  script:    - .\/publish-docs.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 <code>build-docs<\/code> \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c:<\/p>\n<pre><code class=\"yaml\">publish-docs:  needs:    - job: build-docs      optional: true  script:    - .\/publish-docs.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0441 <code>rules:changes<\/code>.<\/p>\n<h4>4.6. \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e<\/h4>\n<p><code>parallel<\/code> \u0438 <code>parallel:matrix<\/code> \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b, \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0440\u0435\u0434\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">test:  stage: test  parallel:    matrix:      - NODE_VERSION: [\"20\", \"22\"]        OS: [\"debian\", \"alpine\"]  image: node:${NODE_VERSION}  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u0432\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430, \u0430 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 40 \u0434\u0436\u043e\u0431\u043e\u0432, \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0436\u0434\u0430\u0442\u044c \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u043d\u0435 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0451\u043c\u043a\u043e\u0441\u0442\u0438 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432.<\/p>\n<h4>4.7. \u0414\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 needs:parallel:matrix, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u0447\u043d\u0430\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c<\/h4>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 downstream-\u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u0435\u043d \u0436\u0434\u0430\u0442\u044c \u043d\u0435 \u0432\u0441\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u043b\u044f <code>linux\/amd64<\/code> \u0434\u043e\u043b\u0436\u043d\u0430 \u0436\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f <code>linux\/amd64<\/code>, \u0430 \u043d\u0435 \u0432\u0441\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>\u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>needs:parallel:matrix<\/code>. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 DAG \u0442\u043e\u0447\u043d\u0435\u0435 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438.<\/p>\n<h4>4.8. retry \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0441\u0431\u043e\u0435\u0432, \u0430 \u043d\u0435 \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/h4>\n<p><code>retry<\/code> \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0435\u0441\u043b\u0438 \u043f\u0430\u0434\u0430\u0435\u0442 \u0440\u0430\u043d\u043d\u0435\u0440, \u0440\u0435\u0435\u0441\u0442\u0440, \u0441\u0435\u0442\u044c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0441\u043b\u043e\u0439.<\/p>\n<p>\u041f\u043b\u043e\u0445\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430:<\/p>\n<pre><code class=\"yaml\">test:  retry: 2  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0430\u0434\u0440\u0435\u0441\u043d\u043e:<\/p>\n<pre><code class=\"yaml\">test:  retry:    max: 2    when:      - runner_system_failure      - stuck_or_timeout_failure  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b, \u0438\u0445 \u043d\u0430\u0434\u043e \u0447\u0438\u043d\u0438\u0442\u044c, \u0430 \u043d\u0435 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%BF%D1%8F%D1%82%D1%8C\" id=\"\u043f\u044f\u0442\u044c\"><\/a><\/p>\n<h3>5. \u041f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435: extends, \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/h3>\n<h4>5.1. \u041d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 YAML \u043f\u043e \u0434\u0436\u043e\u0431\u0430\u043c<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0436\u043e\u0431\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0435 \u0435\u0451 \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u0436\u043e\u0431 \u0438 <code>extends<\/code>.<\/p>\n<pre><code class=\"yaml\">.node-job:  image: node:22  before_script:    - npm cilint:  extends: .node-job  script:    - npm run linttest:  extends: .node-job  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c Node.js \u0438\u043b\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0432\u044b \u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u043e\u0434\u043d\u043e \u043c\u0435\u0441\u0442\u043e.<\/p>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>!reference<\/code>, \u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u043d\u0451\u043c \u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 YAML-\u0444\u043e\u043a\u0443\u0441\u044b. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0430 \u043d\u0435 \u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0435\u0451.<\/p>\n<h4>5.2. \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0438 job-\u0448\u0430\u0431\u043b\u043e\u043d\u044b<\/h4>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0438: <code>stages<\/code>, <code>workflow<\/code>, <code>default<\/code>, \u043e\u0431\u0449\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.<\/p>\n<p>Job-\u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u043c: \u043e\u043d \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0447\u0443\u0436\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 job-\u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code class=\"yaml\">stages:  - testdefault:  image: node:22security-scan:  stage: test  script:    - .\/scan.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432\u0430\u0442\u044c \u0441 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 <code>stages<\/code> \u0438 <code>default<\/code> \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">.security-scan-base:  image: alpine:3.20  script:    - .\/scan.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u043b\u0438 \u0435\u0449\u0451 \u043b\u0443\u0447\u0448\u0435 \u2014 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u044d\u0442\u043e \u043a\u0430\u043a CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441 \u0432\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438.<\/p>\n<h4>5.3. \u0414\u043b\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c<\/h4>\n<p>\u0421\u0442\u0430\u0440\u044b\u0439 \u043f\u0443\u0442\u044c \u2014 \u043e\u0431\u0449\u0438\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438:<\/p>\n<pre><code class=\"yaml\">include:  - project: platform\/ci-templates    ref: main    file: node.yml<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<ul>\n<li>\n<p>\u0441\u043b\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0441\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043b\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 <code>main<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0447\u0430\u0441\u0442\u043e \u0436\u0438\u0432\u0451\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043d\u0435 \u0436\u0438\u0432\u0451\u0442 \u0432\u043e\u043e\u0431\u0449\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0431\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f: \u0443 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, <code>spec:inputs<\/code>, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u0431\u043e\u043b\u0435\u0435 \u044f\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"yaml\">spec:  inputs:    stage:      default: test      description: \"\u0421\u0442\u0430\u0434\u0438\u044f \u0434\u043b\u044f unit tests\"    job-prefix:      default: app      description: \"\u041f\u0440\u0435\u0444\u0438\u043a\u0441 \u0438\u043c\u0435\u043d\u0438 job, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432\"---\"$[[ inputs.job-prefix ]]-unit-tests\":  stage: $[[ inputs.stage ]]  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"yaml\">include:  - component: $CI_SERVER_FQDN\/platform\/ci-components\/unit-tests@1.2.0    inputs:      stage: verify      job-prefix: backend<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.4. \u0414\u043b\u044f inputs \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0430\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">spec:  inputs:    environment:      description: \"Target environment\"---deploy:  environment: $[[ inputs.environment ]]  script:    - .\/deploy.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0430 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0430\u0441\u0442\u044c.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">spec:  inputs:    environment:      default: staging      description: \"Target environment\"---deploy:  environment: $[[ inputs.environment ]]  script:    - .\/deploy.sh $[[ inputs.environment ]]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442: \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0435\u0441\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f \u0438 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<h4>5.5. \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0438\u043d\u044c\u0442\u0435 \u043d\u0430 \u0442\u0435\u0433 \u0438\u043b\u0438 SHA<\/h4>\n<p>\u041f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u2014 \u0432\u0440\u0430\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">include:  - component: $CI_SERVER_FQDN\/platform\/ci-components\/build@~latest<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">include:  - component: $CI_SERVER_FQDN\/platform\/ci-components\/build@1.4.2<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0449\u0451 \u0441\u0442\u0440\u043e\u0436\u0435:<\/p>\n<pre><code class=\"yaml\">include:  - component: $CI_SERVER_FQDN\/platform\/ci-components\/build@e3262fdd0914fa823210cdb79a8c421e2cef79d8<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>~latest<\/code> \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0440\u043e\u0434\u0435 <code>1<\/code> \u0438\u043b\u0438 <code>1.2<\/code> \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 CI\/CD. \u041d\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0434\u0432\u0438\u0436\u0443\u0449\u0430\u044f\u0441\u044f \u0446\u0435\u043b\u044c: <code>~latest<\/code> \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0435\u0441\u0442\u0438 \u0441\u0430\u043c\u044b\u0439 \u0441\u0432\u0435\u0436\u0438\u0439 \u0440\u0435\u043b\u0438\u0437, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043b\u043e\u043c\u0430\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u0443\u0447\u0448\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0439 \u0442\u0435\u0433 \u0438\u043b\u0438 SHA.<\/p>\n<h4>5.6. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 include:local, \u043a\u043e\u0433\u0434\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u0435<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>include:local<\/code>. \u0422\u043e\u0433\u0434\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e Git SHA.<\/p>\n<p>\u042d\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0432\u0437\u044f\u043b\u0438 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u2014 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439.<\/p>\n<h4>5.7. \u0418\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0438\u043c\u0451\u043d \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445<\/h4>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>test<\/code>, \u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0436\u043e\u0431 <code>test<\/code>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"yaml\">test:  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">spec:  inputs:    job-name:      default: component-test---\"$[[ inputs.job-name ]]\":  script:    - npm test<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0447\u0442\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b.<\/p>\n<h4>5.8. \u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432\u0435\u0440\u0441\u0438\u0438<\/h4>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u043a\u043e\u0434. \u0415\u0433\u043e \u043d\u0430\u0434\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d: \u0432 CI \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 SHA \u043a\u043e\u043c\u043c\u0438\u0442\u0430.<\/p>\n<pre><code class=\"yaml\">include:  - component: $CI_SERVER_FQDN\/platform\/ci-components\/my-component@$CI_COMMIT_SHA    inputs:      job-name: test-current-component<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0432\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442 \u043a\u043e\u043c\u043c\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0440\u0435\u043b\u0438\u0437\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 Dockerfile, \u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0445 \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c. \u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0434\u0436\u043e\u0431 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442\u00bb, \u043d\u043e \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b: \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043b\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442, \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0447\u0451\u0442, \u043d\u0435 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<h4>5.9. \u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043b\u043e\u043c\u0430\u044e\u0449\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u043d\u0451\u043c \u2014 \u044d\u0442\u043e \u043d\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442.<\/p>\n<p>\u041c\u0438\u043d\u0438\u043c\u0443\u043c:<\/p>\n<ul>\n<li>\n<p>README \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043b\u043e\u043c\u0430\u044e\u0449\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<p>CI\/CD-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a \u0436\u0435 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e, \u043a\u0430\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 SDK.<\/p>\n<h4>5.10. \u041b\u044e\u0431\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0447\u0430\u0441\u0442\u044c\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 \u0447\u0443\u0436\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0432\u044b \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0447\u0443\u0436\u043e\u0439 YAML \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u043c\u043e\u0436\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0434\u0436\u043e\u0431;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u043a\u0435\u0448\u0438 \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0442\u0435\u0433\u0438 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u0435\u043d \u043b\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Docker;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u0438 \u0448\u0438\u0440\u043e\u043a\u0438\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0445\u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0436\u043e\u0431\u0430.<\/p>\n<p>\u0414\u043b\u044f <code>include:project<\/code> \u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 40-\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 SHA \u0438\u043b\u0438 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0439 \u0442\u0435\u0433. \u0412\u0435\u0442\u043a\u0443 <code>main<\/code>, <code>~latest<\/code> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0432\u0438\u0436\u0443\u0449\u0438\u0435\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a supply-chain-\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441, \u0430 \u043d\u0435 \u043a\u0430\u043a \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u0444\u043e\u043b\u0442.<\/p>\n<h4>5.11. \u0414\u043b\u044f include:remote \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 integrity<\/h4>\n<p><code>include:remote<\/code> \u0443\u0434\u043e\u0431\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 CI-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 URL. \u041d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: \u0432\u044b \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0435 YAML \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0435\u043c\u0443 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: <code>include:remote<\/code> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 HTTP\/HTTPS GET \u0431\u0435\u0437 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 <code>include<\/code> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0431\u0435\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043a\u0430\u043a public user, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 nested <code>include<\/code> \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. \u042d\u0442\u043e \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 <code>integrity<\/code> \u0438 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 include-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0431\u0435\u0437 <code>include:remote<\/code> \u043d\u0435\u043b\u044c\u0437\u044f, \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0447\u0435\u0440\u0435\u0437 <code>integrity<\/code>:<\/p>\n<pre><code class=\"yaml\">include:  - remote: 'https:\/\/gitlab.com\/example-project\/-\/raw\/main\/.gitlab-ci.yml'    integrity: 'sha256-L3\/GAoKaw0Arw6hDCKeKQlV1QPEgHYxGBHsH4zG1IY8='<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u0430 hash \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0451\u0442, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043f\u0430\u0441\u0442\u044c, \u0430 \u043d\u0435 \u043c\u043e\u043b\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0447\u0443\u0436\u043e\u0439 YAML. \u042d\u0442\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 \u0440\u0435\u0432\u044c\u044e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u043d\u043e \u0445\u043e\u0442\u044f \u0431\u044b \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: <code>include:integrity<\/code> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 GitLab 17.9. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f GitLab, \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f <code>include:remote<\/code> \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 <code>include:cache<\/code>. \u041e\u043d \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 TTL \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 YAML. \u041d\u043e \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441 \u043c\u0435\u0436\u0434\u0443 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0438 \u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c\u044e: \u0447\u0435\u043c \u0434\u043e\u043b\u044c\u0448\u0435 \u043a\u0435\u0448, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u0448\u0430\u043d\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0443\u044e \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: <code>include:cache<\/code> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 GitLab 18.9 \u043a\u0430\u043a \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0430 \u043e\u0431\u0449\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0441\u0442\u0430\u043b\u0430 \u0432 GitLab 19.0.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%88%D0%B5%D1%81%D1%82%D1%8C\" id=\"\u0448\u0435\u0441\u0442\u044c\"><\/a><\/p>\n<h3>6. Parent\/child \u0438 multi-project \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b<\/h3>\n<h4>6.1. \u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/h4>\n<p>\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0440\u0430\u0437\u0443 \u0441 parent\/child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, multi-project \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d:<\/p>\n<pre><code class=\"yaml\">stages:  - lint  - test  - build  - deploy<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0442\u043e\u043c <code>workflow:rules<\/code>, <code>needs<\/code>, \u043a\u0435\u0448\u0438, \u043e\u0442\u0447\u0451\u0442\u044b. \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u0434\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438.<\/p>\n<p>\u0421\u043b\u043e\u0436\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 CI\/CD \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u0430, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0440\u0435\u0448\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443: \u043c\u043e\u043d\u043e\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043e\u0432\u0435\u0440\u0438\u044f.<\/p>\n<h4>6.2. Parent\/child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u2014 \u0434\u043b\u044f \u0434\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043c\u043e\u043d\u043e\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/h4>\n<p>\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439\/child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0436\u0438\u0432\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u043d\u043e \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 CI-\u0444\u0430\u0439\u043b\u044b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">backend:  trigger:    include: .gitlab\/ci\/backend.yml    strategy: mirror  rules:    - changes:        - backend\/**\/*frontend:  trigger:    include: .gitlab\/ci\/frontend.yml    strategy: mirror  rules:    - changes:        - frontend\/**\/*<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a backend-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 backend, \u0430 frontend-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 frontend.<\/p>\n<p><code>strategy: mirror<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 trigger-\u0434\u0436\u043e\u0431\u0430 \u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430. \u0412 \u0441\u0442\u0430\u0440\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 \u0435\u0449\u0451 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f <code>strategy: depend<\/code>, \u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e <code>mirror<\/code>: \u0442\u0430\u043a \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 trigger-\u0434\u0436\u043e\u0431\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u0431\u043b\u0438\u0436\u0435 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<p>\u041f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: <code>strategy: mirror<\/code> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 GitLab 18.2. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u043e\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u043c GitLab, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>strategy: depend<\/code> \u0438\u043b\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c GitLab.<\/p>\n<p>\u0415\u0441\u043b\u0438 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 JUnit, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, Terraform, \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u043b\u0438 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u0438 \u043e\u0442\u0447\u0451\u0442\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u043d\u044b \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 MR. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e trigger-\u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u0435\u043d \u0436\u0434\u0430\u0442\u044c child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0447\u0435\u0440\u0435\u0437 <code>strategy: mirror<\/code> \u0438\u043b\u0438 <code>strategy: depend<\/code>, \u0438\u043d\u0430\u0447\u0435 parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435, \u0430 \u043e\u0442\u0447\u0451\u0442\u044b \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435.<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: \u043e\u0442\u0447\u0451\u0442\u044b \u0438\u0437 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u044b MR \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 GitLab 18.6, \u0430 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u2014 \u0432 GitLab 18.9.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f: <code>coverage_report<\/code> \u0438\u0437 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0434\u0430\u0451\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 diff MR, \u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043e\u0442\u0447\u0451\u0442\u043e\u043c parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u00ab\u0432\u0438\u0434\u0436\u0435\u0442 MR\/\u0434\u0438\u0444\u0444\u00bb \u0438 \u00ab\u043e\u0442\u0447\u0451\u0442, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u00bb.<\/p>\n<p>\u042d\u0442\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043e\u0434\u0438\u043d \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 <code>.gitlab-ci.yml<\/code>, \u0433\u0434\u0435 \u0432\u0441\u0435 \u0434\u0436\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u043d\u044b.<\/p>\n<h4>6.3. \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u043f\u0440\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u0443\u0431\u0438\u043d\u044b child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432<\/h4>\n<p>Child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0434\u0435\u0440\u0435\u0432\u043e. \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0448\u043b\u0438 \u0434\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u0436\u0435 \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043e\u0442\u043a\u0443\u0434\u0430 \u0447\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u043d\u0435 \u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0442\u0430\u043b\u0430 \u043c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u043e\u0439 \u0438\u043b\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439, \u0447\u0430\u0449\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 multi-project \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<h4>6.4. \u041c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u2014 \u0434\u043b\u044f multi-repo \u0441\u0438\u0441\u0442\u0435\u043c<\/h4>\n<p>\u041c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0443\u0436\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0448\u0435\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u0439, infra-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0434\u0435\u043f\u043b\u043e\u0439 application-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0440\u0435\u043b\u0438\u0437\u043d\u0430\u044f \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">trigger-service-b:  trigger:    project: platform\/service-b    branch: $CI_DEFAULT_BRANCH    strategy: mirror<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>strategy: mirror<\/code> \u0437\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u0435\u043d \u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u0438\u0447\u0438\u043d\u0435: upstream-trigger-\u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u0430\u043a\u0442, \u0447\u0442\u043e downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u043d\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0432 <code>needs:project<\/code> \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438. \u0414\u043b\u044f MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c <code>CI_MERGE_REQUEST_REF_PATH<\/code>, \u0438\u043d\u0430\u0447\u0435 \u043b\u0435\u0433\u043a\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e branch-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u0430 \u043d\u0435 \u0438\u0437 \u043d\u0443\u0436\u043d\u043e\u0433\u043e MR.<\/p>\n<p>\u041d\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043e\u0432\u0435\u0440\u0438\u044f. Downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0441 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438, \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c upstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d;<\/p>\n<\/li>\n<li>\n<p>\u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 downstream;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c downstream-\u043a\u043e\u0434\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0431\u043e\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e YAML-\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e, \u0430 \u0447\u0430\u0441\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%81%D0%B5%D0%BC%D1%8C\" id=\"\u0441\u0435\u043c\u044c\"><\/a><\/p>\n<h3>7. \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u0435\u0448, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c<\/h3>\n<h4>7.1. \u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u0441 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439<\/h4>\n<p>\u0424\u0440\u0430\u0437\u0430 \u00abCI \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439\u00bb \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 Docker-\u043e\u0431\u0440\u0430\u0437\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0435\u0441\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0442\u0435\u0432\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u0438 retries.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u0441\u0442\u0430\u0434\u0438\u0439, \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c.<\/p>\n<p>\u0411\u0435\u0437 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e.<\/p>\n<h4>7.2. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 auto-cancel \u0438 interruptible<\/h4>\n<p>\u0412 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0447\u0430\u0441\u0442\u043e \u0442\u0435\u0440\u044f\u044e\u0442 \u0441\u043c\u044b\u0441\u043b \u043f\u043e\u0441\u043b\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430. \u041d\u043e \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c, \u043e\u043d\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440\u044b.<\/p>\n<p>\u0414\u043b\u044f \u0434\u0436\u043e\u0431\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043e\u0431\u043e\u0440\u0432\u0430\u0442\u044c, \u0441\u0442\u0430\u0432\u044c\u0442\u0435:<\/p>\n<pre><code class=\"yaml\">lint:  interruptible: true  script:    - npm run lint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0438 \u043d\u0435\u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442:<\/p>\n<pre><code class=\"yaml\">deploy-production:  interruptible: false  script:    - .\/deploy.sh production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0432\u0442\u043e\u043e\u0442\u043c\u0435\u043d\u043e\u0439 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 workflow:<\/p>\n<pre><code class=\"yaml\">workflow:  auto_cancel:    on_new_commit: interruptible    on_job_failure: all  rules:    - if: $CI_COMMIT_REF_PROTECTED == \"true\"      auto_cancel:        on_new_commit: none        on_job_failure: none    - when: always<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a \u0447\u0430\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043d\u0441\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430: \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0430\u0443\u0434\u0438\u0442\u0430, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u0448\u0451\u043b \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<h4>7.3. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 Git \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0443<\/h4>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0442\u0435\u0440\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>fetch<\/code>, \u0430 \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 <code>clone<\/code>. Shallow clone \u0442\u043e\u0436\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442.<\/p>\n<pre><code class=\"yaml\">variables:  GIT_STRATEGY: fetch  GIT_DEPTH: \"20\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441\u044b:<\/p>\n<ul>\n<li>\n<p>\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 <code>GIT_DEPTH<\/code> \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 Git;<\/p>\n<\/li>\n<li>\n<p><code>GIT_STRATEGY: fetch<\/code> \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0435 \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u044d\u0442\u043e\u0439 \u0441\u0440\u0435\u0434\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438\/stop-\u0434\u0436\u043e\u0431\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0442\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>GIT_STRATEGY: none<\/code> \u0438\u043b\u0438 <code>empty<\/code>, \u0435\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 stop-\u0434\u0436\u043e\u0431\u0430, \u0433\u0434\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0430-\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0431\u0435\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<\/p>\n<pre><code class=\"yaml\">stop-review:  image: registry.example.com\/platform\/helm-kubectl:1.30.2  variables:    GIT_STRATEGY: none  script:    - helm uninstall \"app-$CI_COMMIT_REF_SLUG\" --namespace review || true<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0430-\u043b\u043e\u0433\u0438\u043a\u0430 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432\u0440\u043e\u0434\u0435 <code>.\/destroy-review.sh<\/code>, \u043d\u0435 \u0441\u0442\u0430\u0432\u044c\u0442\u0435 <code>GIT_STRATEGY: none<\/code>: \u0431\u0435\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u044b\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.<\/p>\n<h4>7.4. \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439\u0442\u0435 \u043a\u0435\u0448 \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/h4>\n<p>\u041a\u0435\u0448 \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0440\u0435\u0448\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p><strong>\u041a\u0435\u0448<\/strong> \u2014 \u0434\u043b\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445: npm \u043a\u0435\u0448, bundler \u043a\u0435\u0448, Maven repository, Gradle \u043a\u0435\u0448 \u0438 \u0442.\u0434.<\/p>\n<p><strong>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/strong> \u2014 \u0434\u043b\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0434\u0436\u043e\u0431\u0430: \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0431\u043e\u0440\u043a\u0438, JUnit-\u043e\u0442\u0447\u0451\u0442, \u043e\u0442\u0447\u0451\u0442 \u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0438, \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, Terraform plan, \u043f\u0430\u043a\u0435\u0442.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0435\u0448 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0436\u043e\u0431\u0430\u043c\u0438. \u041a\u0435\u0448 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d, \u0443\u0441\u0442\u0430\u0440\u0435\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u0438\u0435\u0445\u0430\u0442\u044c \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0442\u043a\u0438.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"yaml\">build:  script:    - npm run build  artifacts:    paths:      - dist\/    expire_in: 7 daysdeploy:  needs:    - job: build      artifacts: true  script:    - .\/deploy.sh dist\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.5. \u0421\u0442\u0440\u043e\u0439\u0442\u0435 \u043a\u043b\u044e\u0447 \u043a\u0435\u0448\u0430 \u043e\u0442 lockfile<\/h4>\n<p>\u0414\u043b\u044f \u043a\u0435\u0448\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0430\u0441\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043a\u043b\u044e\u0447 \u043e\u0442 lockfile, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0432\u0435\u0442\u043a\u0438.<\/p>\n<pre><code class=\"yaml\">cache:  key:    files:      - package-lock.json  paths:    - .npm\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 lockfile \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0435 \u0436\u0435. \u0417\u043d\u0430\u0447\u0438\u0442, \u043a\u0435\u0448 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0414\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u0434\u043b\u044f \u0432\u0435\u0442\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0432\u0435\u0442\u043a\u0438:<\/p>\n<pre><code class=\"yaml\">cache:  key: cache-$CI_COMMIT_REF_SLUG  paths:    - .cache\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0435 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 key.<\/p>\n<h4>7.6. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043a\u0435\u0448\u0430<\/h4>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0435\u0448 \u0432\u0435\u0442\u043a\u0438 \u0435\u0449\u0451 \u043d\u0435\u0442. \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0435\u0448 \u0432\u0435\u0442\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<pre><code class=\"yaml\">cache:  - key: cache-$CI_COMMIT_REF_SLUG    fallback_keys:      - cache-$CI_DEFAULT_BRANCH      - cache-default    paths:      - vendor\/ruby<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0434\u0436\u043e\u0431 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0449\u0435\u0442 \u043a\u0435\u0448 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0442\u043a\u0438, \u043f\u043e\u0442\u043e\u043c \u0432\u0435\u0442\u043a\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0449\u0438\u0439 fallback.<\/p>\n<p>\u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0431\u0430\u043b\u0430\u043d\u0441 \u043c\u0435\u0436\u0434\u0443 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0435\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0441\u0442\u0430\u0440\u0442\u043e\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0435\u0442\u044b\u043c \u043a\u0435\u0448\u0435\u043c. \u041d\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u043a\u0435\u0448 \u043d\u0443\u0436\u043d\u043e \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u043c\u043e\u0439\u043a\u043e\u0439.<\/p>\n<h4>7.7. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u0434\u0438\u043d \u043a\u043b\u044e\u0447 \u043a\u0435\u0448\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0443\u0442\u0435\u0439<\/h4>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">cache:  key: deps  paths:    - node_modules\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u0436\u043e\u0431\u0435:<\/p>\n<pre><code class=\"yaml\">cache:  key: deps  paths:    - vendor\/bundle\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0430 \u0434\u0436\u043e\u0431\u0430 \u043f\u0438\u0448\u0443\u0442 \u0432 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0440\u0445\u0438\u0432 \u043a\u0435\u0448\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c. \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 misses, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c:<\/p>\n<pre><code class=\"yaml\">cache:  key: npm-$CI_COMMIT_REF_SLUG  paths:    - .npm\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<pre><code class=\"yaml\">cache:  key: ruby-$CI_COMMIT_REF_SLUG  paths:    - vendor\/bundle\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.8. \u0414\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u0435\u043d \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043a\u0435\u0448<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 A \u0441\u043e\u0437\u0434\u0430\u043b \u043a\u0435\u0448 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u0430, \u0430 \u0434\u0436\u043e\u0431 B \u0443\u0448\u0451\u043b \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0445\u043e\u0441\u0442, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0435\u0448 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>\u043e\u0434\u0438\u043d \u0440\u0430\u043d\u043d\u0435\u0440 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u043a\u0435\u0448\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0435\u0448 \u0434\u043b\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0441 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c \u0431\u0435\u043a\u0435\u043d\u0434\u043e\u043c \u043a\u0435\u0448\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430. \u0418\u043d\u0430\u0447\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043a\u0435\u0448\u0430 \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0441\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u0438.<\/p>\n<h4>7.9. \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439\u0442\u0435 \u043a\u0435\u0448\u0438 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 refs<\/h4>\n<p>\u041a\u0435\u0448 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0440\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e. \u0415\u0441\u043b\u0438 \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043a\u0435\u0448, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430, \u044d\u0442\u043e \u043e\u043f\u0430\u0441\u043d\u043e.<\/p>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u0435\u0448\u0438 \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 refs \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u0440\u0438\u0441\u043a. \u0414\u0430, \u0434\u043e\u043b\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0439 \u0432 \u043a\u0435\u0448 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043d\u0438\u0436\u0435. \u041d\u043e \u0434\u043b\u044f \u043f\u0443\u0442\u0438 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0436\u043d\u0435\u0435.<\/p>\n<h4>7.10. \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0436\u0438\u0437\u043d\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432<\/h4>\n<p>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0436\u0438\u0442\u044c \u0432\u0435\u0447\u043d\u043e \u00ab\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb.<\/p>\n<pre><code class=\"yaml\">build:  artifacts:    paths:      - dist\/    expire_in: 7 days<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043d\u0443\u0436\u0435\u043d <code>when: always<\/code>, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0447\u0451\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0434\u0436\u043e\u0431\u0430:<\/p>\n<pre><code class=\"yaml\">test:  script:    - npm test -- --reporter=junit  artifacts:    when: always    reports:      junit: junit.xml    paths:      - junit.xml    expire_in: 14 days<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0441\u0440\u043e\u043a \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043b\u043e\u043c\u0430\u0435\u0442 \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 MR. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u2014 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u041d\u0443\u0436\u0435\u043d \u0431\u0430\u043b\u0430\u043d\u0441.<\/p>\n<h4>7.11. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 artifacts:expose_as \u0434\u043b\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0435\u0432\u044c\u044e\u0435\u0440\u0430<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 HTML-\u043e\u0442\u0447\u0451\u0442, Terraform plan, preview summary \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0440\u0435\u0432\u044c\u044e\u0435\u0440, \u043d\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0435\u0433\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<pre><code class=\"yaml\">terraform-plan:  script:    - terraform plan -out=tfplan    - terraform show -no-color tfplan &gt; plan.txt  artifacts:    expose_as: \"Terraform plan\"    paths:      - plan.txt<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0446\u0438\u043a\u043b\u0430 \u0440\u0435\u0432\u044c\u044e, \u0430 \u043d\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 \u0434\u0436\u043e\u0431\u0430.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B2%D0%BE%D1%81%D0%B5%D0%BC%D1%8C\" id=\"\u0432\u043e\u0441\u0435\u043c\u044c\"><\/a><\/p>\n<h3>8. \u0421\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, BuildKit, Dependency Proxy \u0438 \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435<\/h3>\n<h4>8.1. \u041d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0439\u0442\u0435 Docker-\u043e\u0431\u0440\u0430\u0437\u044b \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u044b<\/h4>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 Docker-in-Docker \u0443\u0434\u043e\u0431\u0435\u043d, \u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438 Docker-\u0434\u0435\u043c\u043e\u043d\u0430. \u042d\u0442\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430 \u043e\u0431\u0449\u0438\u0445 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u0430\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043b\u0443\u0447\u0448\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432, Buildah, Podman \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439.<\/p>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e <code>docker buildx<\/code> \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043b\u043e\u0445. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0440\u0438\u0441\u043a\u0443.<\/p>\n<h4>8.2. \u0414\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0434\u043b\u044f GitLab \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432:<\/p>\n<pre><code class=\"yaml\">build-image:  image:    name: moby\/buildkit:rootless    entrypoint: [\"\"]  stage: build  variables:    BUILDKITD_FLAGS: --oci-worker-no-process-sandbox    CACHE_IMAGE: $CI_REGISTRY_IMAGE:cache  before_script:    - mkdir -p ~\/.docker    - |      cat &gt; ~\/.docker\/config.json &lt;&lt;EOF      {        \"auths\": {          \"$CI_REGISTRY\": {            \"username\": \"$CI_REGISTRY_USER\",            \"password\": \"$CI_REGISTRY_PASSWORD\"          }        }      }      EOF  script:    - |      buildctl-daemonless.sh build \\        --frontend dockerfile.v0 \\        --local context=. \\        --local dockerfile=. \\        --import-cache type=registry,ref=$CACHE_IMAGE \\        --export-cache type=registry,ref=$CACHE_IMAGE \\        --output type=image,name=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA,push=true<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043b\u044e\u0441\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Docker-\u0434\u0435\u043c\u043e\u043d;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0445\u043e\u0440\u043e\u0448\u043e \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u0443\u044e CI-\u0441\u0440\u0435\u0434\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0440\u0430\u0434\u0438\u0443\u0441 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c DinD \u043d\u0430 \u043e\u0431\u0449\u0435\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0443\u0441\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 auth \u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0430\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c BuildKit;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 Docker-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0432 \u043e\u0434\u0438\u043d.<\/p>\n<\/li>\n<\/ul>\n<h4>8.3. \u0420\u0430\u0437\u043b\u0438\u0447\u0430\u0439\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u0435\u0448 \u0438 \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435<\/h4>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u0435\u0448 \u043f\u0440\u043e\u0449\u0435:<\/p>\n<pre><code class=\"bash\">docker build \\  --build-arg BUILDKIT_INLINE_CACHE=1 \\  --cache-from \"$CI_REGISTRY_IMAGE:latest\" \\  -t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA\" .<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0434\u043b\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043c\u043d\u043e\u0433\u043e\u044d\u0442\u0430\u043f\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u0447\u0430\u0441\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435:<\/p>\n<pre><code class=\"bash\">docker buildx build \\  --cache-from type=registry,ref=$CI_REGISTRY_IMAGE:buildcache \\  --cache-to type=registry,ref=$CI_REGISTRY_IMAGE:buildcache,mode=max \\  -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA \\  --push .<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u0435\u0448 \u0445\u043e\u0440\u043e\u0448 \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442. \u041a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u043b\u0443\u0447\u0448\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0440\u0435\u043b\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u0433\u0434\u0435 \u043a\u0435\u0448 \u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0436\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430.<\/p>\n<h4>8.4. \u041d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0432 Docker-\u0441\u0431\u043e\u0440\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 ARG, ENV \u0438\u043b\u0438 COPY<\/h4>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>ARG NPM_TOKENRUN npm config set \/\/registry.npmjs.org\/:_authToken=$NPM_TOKEN<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0435\u043a\u0440\u0435\u0442 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043b\u043e\u0451\u0432, \u043b\u043e\u0433\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u043b\u0438 \u043a\u0435\u0448.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u044b BuildKit:<\/p>\n<pre><code># syntax=docker\/dockerfile:1RUN --mount=type=secret,id=npmrc,target=\/root\/.npmrc \\    npm ci<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 CI:<\/p>\n<pre><code class=\"bash\">docker buildx build \\  --secret id=npmrc,src=.npmrc \\  -t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA\" .<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0435\u043a\u0440\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u0441\u0431\u043e\u0440\u043a\u0438, \u0430 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437.<\/p>\n<h4>8.5. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Dependency Proxy \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/h4>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u0447\u0430\u0441\u0442\u043e \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0438\u0437 Docker Hub \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u0432. \u042d\u0442\u043e \u0434\u0430\u0451\u0442:<\/p>\n<ul>\n<li>\n<p>\u043b\u0438\u043c\u0438\u0442\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043b\u0438\u0448\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>GitLab Dependency Proxy \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c upstream-\u043e\u0431\u0440\u0430\u0437\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0433\u0440\u0443\u043f\u043f\u044b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}\/node:22-bookworm-slim<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f Dockerfile:<\/p>\n<pre><code>ARG CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIXFROM ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}\/node:22-bookworm-slim<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0442\u044f\u043d\u0443\u0442 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b.<\/p>\n<h4>8.6. \u0422\u0435\u0433\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e<\/h4>\n<p>\u041d\u0435 \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0439 \u0438\u0437 <code>latest<\/code>.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e:<\/p>\n<pre><code class=\"bash\">docker build -t $CI_REGISTRY_IMAGE:latest .docker push $CI_REGISTRY_IMAGE:latest<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<pre><code class=\"bash\">docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0443\u0448\u0438\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0442\u0435\u0433\u0438:<\/p>\n<pre><code class=\"bash\">docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUGdocker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0434\u0435\u043f\u043b\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u0442\u0435\u0433 \u0438\u043b\u0438 digest, \u0430 \u043d\u0435 \u043d\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 <code>latest<\/code>.<\/p>\n<h4>8.7. Kaniko \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 best practice \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e GitLab CI\/CD<\/h4>\n<p>Kaniko \u0434\u043e\u043b\u0433\u043e \u0431\u044b\u043b \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u0431\u0435\u0437 Docker-\u0434\u0435\u043c\u043e\u043d\u0430. \u041d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0430 \u043d\u0435 \u043a\u0430\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c Kaniko-\u0434\u0436\u043e\u0431\u044b \u0438 \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u043e\u043c\u0430\u0442\u044c \u0432\u0441\u0451 \u0432 \u043e\u0434\u0438\u043d \u0434\u0435\u043d\u044c. \u041d\u043e \u043f\u0440\u0438 \u043f\u043b\u0430\u043d\u043e\u0432\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 CI\/CD-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0441\u0442\u043e\u0438\u0442 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432, Buildah, Podman \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: \u043d\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0435\u0439.<\/p>\n<h4>8.8. \u041f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 SBOM, \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u043b\u0438\u0442\u0438\u043a<\/h4>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u043a\u043e\u043d\u0435\u0446 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e. \u0415\u0441\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0431\u0440\u0430\u043b \u043e\u0431\u0440\u0430\u0437 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u043b \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d, \u0432\u044b \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442\u0435 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0436\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u043e\u0431\u0440\u0430\u0437;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 CVE \u0435\u0441\u0442\u044c \u0432 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043e\u0431\u0440\u0430\u0437\u0435 \u0438 \u043f\u0430\u043a\u0435\u0442\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0442\u043e \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u0441\u043e\u0431\u0440\u0430\u043b \u043e\u0431\u0440\u0430\u0437;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u043b\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u0440\u0430\u0437 \u043a \u0434\u0435\u043f\u043b\u043e\u044e \u043f\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0440\u0435\u043b\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0441 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c \u0442\u0435\u0433\u043e\u043c \u0438\u043b\u0438 digest.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c SBOM, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 CycloneDX.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0447\u0435\u0440\u0435\u0437 Cosign, Notation \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0439 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c provenance\/attestation, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0435\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u043b\u0438\u0442\u0438\u043a: \u043d\u0435 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0437, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 CycloneDX-\u043e\u0442\u0447\u0451\u0442\u043e\u043c:<\/p>\n<pre><code class=\"yaml\">sbom:  stage: test  script:    - .\/generate-sbom.sh &gt; gl-sbom.cdx.json  artifacts:    reports:      cyclonedx:        - gl-sbom.cdx.json    paths:      - gl-sbom.cdx.json<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0442\u0430\u0440\u0438\u0444\u043d\u043e\u043c\u0443 \u0443\u0440\u043e\u0432\u043d\u044e: GitLab-\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f <code>artifacts:reports:cyclonedx<\/code> \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a Ultimate. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0442\u0430\u0440\u0438\u0444\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0435\u0442, SBOM \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a, \u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441-\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f GitLab \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.<\/p>\n<p>\u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0412\u0430\u0436\u0435\u043d \u043f\u0440\u0438\u043d\u0446\u0438\u043f: \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0444\u0430\u043a\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u043e \u0438 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0431\u0440\u0430\u0437\u0435.<\/p>\n<h4>8.9. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u043b\u044f \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u0438 \u043a\u0435\u0448\u0430 \u0441\u0431\u043e\u0440\u043a\u0438<\/h4>\n<p>Dependency Proxy, \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u0438 \u0442\u0435\u0433\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0442 CI\/CD, \u043d\u043e \u0431\u0435\u0437 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043e\u043d\u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<p>\u0427\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0438\u0432\u0443\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0440\u0435\u0432\u044c\u044e-\u0442\u0435\u0433\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0447\u0438\u0441\u0442\u0438\u0442\u0441\u044f \u043a\u0435\u0448 \u0441\u0431\u043e\u0440\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043a\u0435\u0448-\u043e\u0431\u0440\u0430\u0437 \u0432\u0440\u043e\u0434\u0435 <code>$CI_REGISTRY_IMAGE:buildcache<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u0442\u0435\u0433\u0438 \u0432\u0435\u0442\u043e\u043a \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0432\u0435\u0442\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0445 \u0442\u0435\u0433\u043e\u0432 \u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043e\u0431\u0440\u0430\u0437\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442 \u043b\u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0425\u043e\u0440\u043e\u0448\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\/\u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0436\u0438\u0432\u0443\u0442 \u0434\u043e\u043b\u0433\u043e \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e, \u0430 \u0440\u0435\u0432\u044c\u044e-, \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043a\u0435\u0448-\u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 TTL \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0443.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B4%D0%B5%D0%B2%D1%8F%D1%82%D1%8C\" id=\"\u0434\u0435\u0432\u044f\u0442\u044c\"><\/a><\/p>\n<h3>9. \u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0434\u0435\u043f\u043b\u043e\u0438<\/h3>\n<h4>9.1. \u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c<\/h4>\n<p>\u0414\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431 \u0431\u0435\u0437 <code>environment<\/code> \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432 \u043b\u043e\u0433\u0430\u0445. \u0414\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431 \u0441 <code>environment<\/code> \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 GitLab.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">deploy-staging:  stage: deploy  script:    - .\/deploy.sh staging  environment:    name: staging    url: https:\/\/staging.example.com    deployment_tier: staging<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a GitLab \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u0438 \u043a\u0443\u0434\u0430 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0435\u043d\u043e. \u042d\u0442\u043e \u0434\u0430\u0451\u0442:<\/p>\n<ul>\n<li>\n<p>\u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0434\u0435\u043f\u043b\u043e\u0435\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u043d\u0435\u043b\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0447\u0438\u0441\u0442\u043a\u0443;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<h4>9.2. \u0417\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 deployment_tier \u044f\u0432\u043d\u043e<\/h4>\n<p>\u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u043c\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u041b\u0443\u0447\u0448\u0435 \u044f\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c:<\/p>\n<pre><code class=\"yaml\">environment:  name: production  deployment_tier: production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><code>production<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>staging<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>testing<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>development<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>other<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f\u0445, \u0433\u0434\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h4>9.3. \u0414\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 URL \u0447\u0435\u0440\u0435\u0437 dotenv<\/h4>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 URL \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u044f: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, PaaS \u0438\u043b\u0438 Kubernetes ingress \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>\u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0436\u043e\u0431 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c URL \u0432 dotenv-\u043e\u0442\u0447\u0451\u0442:<\/p>\n<pre><code class=\"yaml\">deploy-review:  script:    - .\/deploy-review.sh    - echo \"DYNAMIC_ENVIRONMENT_URL=https:\/\/$CI\\_COMMIT\\_REF\\_SLUG.review.example.com\" &gt;&gt; deploy.env  artifacts:    reports:      dotenv: deploy.env  environment:    name: review\/$CI_COMMIT_REF_SLUG    url: $DYNAMIC_ENVIRONMENT_URL<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435.<\/p>\n<h4>9.4. \u0420\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c on_stop \u0438 auto_stop_in<\/h4>\n<p>\u0420\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u2014 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0449\u0430\u044f \u0441\u0432\u0430\u043b\u043a\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d:<\/p>\n<pre><code class=\"yaml\">deploy-review:  stage: deploy  script:    - .\/deploy-review.sh  environment:    name: review\/$CI_COMMIT_REF_SLUG    url: https:\/\/$CI\\_ENVIRONMENT\\_SLUG.example.com    on_stop: stop-review    auto_stop_in: 1 week  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"stop-review:  stage: deploy  script:    - .\/destroy-review.sh  environment:    name: review\/$CI_COMMIT_REF_SLUG    action: stop  when: manual  allow_failure: true  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <code>stop-review<\/code> \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0435\u0440\u0435\u0437 <code>allow_failure: true<\/code>: \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f UI-\u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u0430\u0448\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 manual-\u0434\u0436\u043e\u0431 \u0438 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0412\u0430\u0436\u043d\u043e: \u0434\u0435\u043f\u043b\u043e\u0439 \u0438 stop-\u0434\u0436\u043e\u0431\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0435 <code>rules<\/code>. \u0415\u0441\u043b\u0438 stop-\u0434\u0436\u043e\u0431 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, GitLab \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<h4>9.5. \u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0434\u0435\u043f\u043b\u043e\u0439- \u0438 stop-\u0434\u0436\u043e\u0431\u044b \u0432 \u043e\u0434\u043d\u043e\u043c resource_group<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441 <code>on_stop<\/code>, \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431 \u0438 stop-\u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e.<\/p>\n<pre><code class=\"yaml\">deploy-review:  resource_group: review\/$CI_COMMIT_REF_SLUG  environment:    name: review\/$CI_COMMIT_REF_SLUG    on_stop: stop-review  script:    - .\/deploy-review.shstop-review:  resource_group: review\/$CI_COMMIT_REF_SLUG  environment:    name: review\/$CI_COMMIT_REF_SLUG    action: stop  script:    - .\/destroy-review.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0445 \u0433\u043e\u043d\u043e\u043a \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u043f\u043b\u043e\u0435\u043c \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439.<\/p>\n<h4>9.6. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0439\u0442\u0435 \u043a\u0430\u0440\u0442\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439<\/h4>\n<p>\u0414\u043b\u044f frontend, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0438\u0437 MR \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 <code>.gitlab\/route-map.yml<\/code>:<\/p>\n<pre><code class=\"yaml\">- source: \/docs\\\/(.*)\\.md\/  public: '\/docs\/\\1\/'<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0440\u0435\u0432\u044c\u044e\u0435\u0440 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0436\u0438\u0432\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h4>9.7. \u0417\u0430\u0449\u0438\u0449\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0438 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043a\u043e\u0434. \u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0434\u0435\u043f\u043b\u043e\u0439.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0432\u0435\u0442\u043a\u0438\/\u0442\u0435\u0433\u0438 \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">deploy-production:  stage: deploy  environment:    name: production    deployment_tier: production  rules:    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH      when: manual  script:    - .\/deploy.sh production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0441\u0430\u043c\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 GitLab.<\/p>\n<h4>9.8. \u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0439\u0442\u0435 \u0434\u0435\u043f\u043b\u043e\u0438 \u0447\u0435\u0440\u0435\u0437 resource_group<\/h4>\n<p>\u0414\u0432\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u2014 \u043f\u043b\u043e\u0445\u0430\u044f \u0438\u0434\u0435\u044f.<\/p>\n<pre><code class=\"yaml\">deploy-production:  stage: deploy  resource_group: production  environment:    name: production  script:    - .\/deploy.sh production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>resource_group<\/code> \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u0434\u0436\u043e\u0431\u044b \u0441 \u043e\u0434\u043d\u043e\u0439 <code>resource_group<\/code> \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f:<\/p>\n<ul>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u044f \u0432 Kubernetes;<\/p>\n<\/li>\n<li>\n<p>Terraform apply;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<h4>9.9. \u041f\u043e\u0434\u0431\u0438\u0440\u0430\u0439\u0442\u0435 process_mode \u043f\u043e\u0434 \u0440\u0435\u043b\u0438\u0437\u043d\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443<\/h4>\n<p>\u0423 <code>resource_group<\/code> \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><code>oldest_first<\/code> \u2014 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u044f;<\/p>\n<\/li>\n<li>\n<p><code>newest_first<\/code> \u2014 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0440\u044b\u0435 \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u044b, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p><code>newest_ready_first<\/code> \u2014 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0435 \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u0439, \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e.<\/p>\n<h4>9.10. \u0414\u043b\u044f downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u0435\u043f\u043b\u043e\u044f \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043d\u0430 trigger-\u0434\u0436\u043e\u0431\u0435<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0435\u043f\u043b\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0436\u0438\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<p>\u0418\u043d\u0430\u0447\u0435 trigger-\u0434\u0436\u043e\u0431 \u0432 parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f, <code>resource_group<\/code> \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u0441\u044f, \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043f\u043b\u043e\u0439 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442, \u043f\u043e\u043a\u0430 downstream \u0435\u0449\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>trigger:strategy: mirror<\/code> \u0438\u043b\u0438 \u043f\u043e\u0434\u0445\u043e\u0434, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043e\u0436\u0438\u0434\u0430\u0435\u0442 downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<h4>9.11. \u0418\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 deadlock\u2019\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438<\/h4>\n<p>\u041e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d: parent\/child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u044e\u0442 \u0437\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 <code>resource_group<\/code>, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438 <code>oldest_first<\/code>. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0436\u0434\u0451\u0442 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439, \u0430 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0436\u0434\u0451\u0442 \u0440\u0435\u0441\u0443\u0440\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0438 child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0438\u0445 \u044f\u0432\u043d\u043e. \u041d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 <code>resource_group<\/code> \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0431\u0435\u0437 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<\/p>\n<h4>9.12. \u0412\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u0437\u0430\u0449\u0438\u0442\u0443 \u043e\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u043e\u0432<\/h4>\n<p>\u0421\u0442\u0430\u0440\u044b\u0439 \u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u0435\u0437\u0436\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u043d\u043e\u0432\u043e\u0433\u043e.<\/p>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439:<\/p>\n<ol>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d A \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043f\u043b\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d B \u0441\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d A \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u043e\u0442\u043a\u0430\u0442\u0438\u043b \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<\/li>\n<\/ol>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u043e\u0432 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0440\u0443\u0447\u043d\u043e\u0439 \u043e\u0442\u043a\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043e\u0442\u043a\u0430\u0442\u0430.<\/p>\n<h4>9.13. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 environment-scoped \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 rules \u0438 include<\/h4>\n<p>Environment-scoped \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0443\u0434\u043e\u0431\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u043f\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u043c:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f <code>production<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f <code>review\/*<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433-\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f <code>staging<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0438\u0445 \u0432 <code>rules<\/code> \u0438\u043b\u0438 <code>include<\/code>. \u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0435\u0449\u0451 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f \u043a environment-scoped \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 environment actions:<\/p>\n<ul>\n<li>\n<p><code>prepare<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>verify<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>access<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0430\u043c, \u0433\u0434\u0435 GitLab \u0435\u0449\u0451 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h4>9.14. \u0414\u043b\u044f \u043e\u043f\u0430\u0441\u043d\u044b\u0445 manual-\u0434\u0436\u043e\u0431\u043e\u0432 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 manual_confirmation<\/h4>\n<p>Manual-\u0434\u0436\u043e\u0431 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0439- \u0438 stop-\u0434\u0436\u043e\u0431\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u044f\u0432\u043d\u043e\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"yaml\">deploy-production:  stage: deploy  script:    - .\/deploy.sh production  environment:    name: production  when: manual  manual_confirmation: \"Deploy to production?\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u044e\u0430\u043d\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0430\u0441\u0442\u043e \u043f\u0443\u0442\u0430\u044e\u0442: <code>when: manual<\/code> \u0432\u043d\u0435 <code>rules<\/code> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 manual-\u0434\u0436\u043e\u0431 (<code>allow_failure: true<\/code>), \u0430 <code>when: manual<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 <code>rules<\/code> \u2014 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u0435 (<code>allow_failure: false<\/code>). \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u00ab\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 manual\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 <code>rules<\/code>, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 <code>allow_failure: true<\/code> \u044f\u0432\u043d\u043e.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>Terraform apply;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p><code>manual_confirmation<\/code> \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c: <code>manual_confirmation<\/code> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 GitLab 17.1, \u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 stop-\u0434\u0436\u043e\u0431\u043e\u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 GitLab 18.3. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f GitLab, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447 \u0432 \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b.<\/p>\n<h4>9.15. \u041f\u0440\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0443 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043e\u0442\u043a\u0430\u0442\u0430<\/h4>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u0432\u0430\u0436\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c \u0434\u0435\u043f\u043b\u043e\u0439, \u043d\u043e \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u0438 \u043a\u0430\u043a \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0417\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0430 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u043d\u0443\u0436\u043d\u0430, \u0435\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434\u044b, \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u043f\u0440\u0435\u0449\u0451\u043d: \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u043a\u0438, \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0435 \u043e\u043a\u043d\u0430, \u043a\u043e\u043d\u0435\u0446 \u043e\u0442\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 freeze \u043f\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0451\u043d\u043d\u043e\u0441\u0442\u0438 \u0441 \u0431\u0438\u0437\u043d\u0435\u0441\u043e\u043c.<\/p>\n<p>\u041e\u0442\u043a\u0430\u0442 \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044f\u0432\u043d\u043e. \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u043e \u0441\u0442\u0430\u0440\u044b\u043c SHA \u043a\u043e\u043c\u043c\u0438\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0442\u0435\u0433\u0430 \u043e\u0431\u0440\u0430\u0437\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0436\u043e\u0431 \u043e\u0442\u043a\u0430\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u043a\u0430\u0442 \u0440\u0435\u043b\u0438\u0437\u0430 \u0447\u0435\u0440\u0435\u0437 Git-\u0442\u0435\u0433 \u0438\u043b\u0438 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043e\u043f\u0430\u0441\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u0430 \u0431\u0435\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f: \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043e\u0442\u043a\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u043d\u0430 \u043d\u0435\u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041b\u0443\u0447\u0448\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043a\u0430\u0442\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c, \u043a\u0442\u043e \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b.<\/p>\n<h4>9.16. \u0414\u043b\u044f Kubernetes-\u0434\u0435\u043f\u043b\u043e\u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 GitLab Agent for Kubernetes<\/h4>\n<p>\u0415\u0441\u043b\u0438 GitLab CI\/CD \u0434\u0435\u043f\u043b\u043e\u0438\u0442 \u0432 Kubernetes, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0439 kubeconfig \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 CI\/CD-\u0441\u0435\u043a\u0440\u0435\u0442. \u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u2014 GitLab Agent for Kubernetes.<\/p>\n<p>Agent \u0434\u0430\u0451\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d Kubernetes-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <code>ci_access<\/code>, \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0433\u0440\u0443\u043f\u043f\u044b, RBAC \u0438 \u0438\u043c\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0446\u0438\u044e. \u0412 \u0434\u0436\u043e\u0431\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>$KUBECONFIG<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <code>kubectl<\/code>.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0434\u0435\u0438:<\/p>\n<pre><code class=\"yaml\">deploy-kubernetes:  image: registry.example.com\/platform\/kubectl:1.30.2  script:    - kubectl config use-context path\/to\/agent\/project:agent-name    - kubectl apply -f k8s\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 RBAC. \u041d\u043e \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0431\u0435\u0441\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 kubeconfig \u0432\u0441\u0435\u043c \u0434\u0436\u043e\u0431\u0430\u043c \u0434\u0435\u043f\u043b\u043e\u044f.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0431\u0440\u0430\u0437 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d \u0441 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439. \u0414\u043b\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0435\u043f\u043b\u043e\u044f \u0432\u0440\u043e\u0434\u0435 <code>kubectl<\/code>, <code>helm<\/code> \u0438 <code>kustomize<\/code> \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>latest<\/code>: \u0438\u043d\u0430\u0447\u0435 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u0430.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B4%D0%B5%D1%81%D1%8F%D1%82%D1%8C\" id=\"\u0434\u0435\u0441\u044f\u0442\u044c\"><\/a><\/p>\n<h3>10. MR, merged results pipelines \u0438 merge trains<\/h3>\n<h4>10.1. \u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b<\/h4>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0435\u0442\u043a\u0438. MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 MR.<\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0440\u0435\u0432\u044c\u044e MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0430\u0436\u043d\u0435\u0435: \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u0434\u0430\u0451\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0432\u0438\u0434\u0436\u0435\u0442\u044b, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0440\u0435\u0432\u044c\u044e\u0435\u0440\u0443.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">workflow:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == \"push\"      when: never    - if: $CI_COMMIT_BRANCH<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u0435\u0442\u043e\u043a \u0431\u0435\u0437 MR, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f MR \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.<\/p>\n<h4>10.2. Merged results pipelines \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 MR \u0442\u0430\u043a, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u0432\u043b\u0438\u0442<\/h4>\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0439 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0432\u0435\u0442\u043a\u0443. \u041d\u043e \u0446\u0435\u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 MR \u0437\u0435\u043b\u0451\u043d\u044b\u0439, \u0430 \u043f\u043e\u0441\u043b\u0435 merge \u0432\u0435\u0442\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u043d\u043e\u0439.<\/p>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 merge-\u043a\u043e\u043c\u043c\u0438\u0442 \u043c\u0435\u0436\u0434\u0443 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0438 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0442\u043a\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e.<\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 MR;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0442\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0430\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0442 \u043f\u043e\u0437\u0434\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0430\u0436\u043d\u043e \u043b\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0434\u043e merge.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441: <code>rules:changes:compare_to<\/code> \u0432 merged results pipeline \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043d\u0430\u0447\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0431\u0430\u0437\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 merge-\u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 detached MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, merged results pipeline \u0438 merge train pipeline, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <code>CI_MERGE_REQUEST_EVENT_TYPE<\/code>: \u043e\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <code>detached<\/code>, <code>merged_result<\/code> \u0438 <code>merge_train<\/code>. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0442\u044f\u0436\u0451\u043b\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u043c \u0442\u0438\u043f\u0435 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430.<\/p>\n<h4>10.3. Merge trains \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u0439<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u0432\u0435\u0442\u043a\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0430\u0441\u0442\u043e \u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0434\u0430\u0436\u0435 merged results pipeline \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041f\u043e\u043a\u0430 \u043e\u0434\u0438\u043d MR \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u043c\u043e\u0433\u0443\u0442 \u0432\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 MR.<\/p>\n<p>\u041e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043b\u0438\u044f\u043d\u0438\u044f \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 MR \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 MR \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0442\u0435\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0441\u0442\u043e\u044f\u0442 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<\/p>\n<p>\u042d\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u00ab\u043a\u0430\u0436\u0434\u044b\u0439 MR \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0437\u0435\u043b\u0451\u043d\u044b\u0439, \u043d\u043e main \u043f\u043e\u0441\u043b\u0435 merge \u043a\u0440\u0430\u0441\u043d\u044b\u0439\u00bb.<\/p>\n<h4>10.4. Merge trains \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438 \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u044f<\/h4>\n<p>Merge trains \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443. \u041e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438 \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u044f.<\/p>\n<p>\u0418\u043d\u0430\u0447\u0435 MR \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e: \u0437\u0430\u0441\u0442\u0440\u0435\u0432\u0430\u0442\u044c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u0432 \u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u043b\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<h4>10.5. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043e\u0441\u043b\u0438\u044f\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 merge trains<\/h4>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u0439 \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>Set to auto-merge<\/code>. \u0422\u043e\u0433\u0434\u0430 MR \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438 GitLab \u0441\u0430\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442 merge, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0443\u0442.<\/p>\n<p>\u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043b\u044e\u0434\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043b\u043e\u0432\u0438\u0442\u044c \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0437\u0435\u043b\u0451\u043d\u044b\u0439, \u0430 \u044d\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0445\u0430\u043e\u0441.<\/p>\n<h4>10.6. Release-\u0434\u0436\u043e\u0431\u044b, \u0442\u0435\u0433\u0438 \u0438 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c<\/h4>\n<p>Release-\u0434\u0436\u043e\u0431 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u0439-\u0434\u0436\u043e\u0431\u0430. \u0423 \u0440\u0435\u043b\u0438\u0437\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0435\u0433, \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u0430, \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0444\u0430\u0439\u043b\u044b \u0440\u0435\u043b\u0438\u0437\u0430, package, \u0442\u0435\u0433 \u043e\u0431\u0440\u0430\u0437\u0430 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0438 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>\u0427\u0430\u0441\u0442\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>\u0440\u0435\u043b\u0438\u0437 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u0440\u0438 push Git-\u0442\u0435\u0433\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u043b\u0438\u0437 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 merge \u0432 \u0432\u0435\u0442\u043a\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 prepare-\u0434\u0436\u043e\u0431 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435, \u0430 release-\u0434\u0436\u043e\u0431 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0440\u0435\u043b\u0438\u0437;<\/p>\n<\/li>\n<li>\n<p>release-\u0434\u0436\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0444\u0430\u0439\u043b\u044b \u0440\u0435\u043b\u0438\u0437\u0430 \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u0448\u0430\u0433\u043e\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u043b\u0438\u0437\u0430 \u043f\u043e \u0442\u0435\u0433\u0443:<\/p>\n<pre><code class=\"yaml\">release-job:  stage: release  image: registry.gitlab.com\/gitlab-org\/cli:latest  rules:    - if: $CI_COMMIT_TAG  script:    - echo \"Create release for $CI_COMMIT_TAG\"  release:    tag_name: '$CI_COMMIT_TAG'    description: '$CI_COMMIT_TAG'<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 <code>workflow:rules<\/code>: \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 tag pipelines, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>if: $CI_COMMIT_TAG<\/code> \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430 \u0441\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u2014 \u0442\u0435\u0433\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0440\u0435\u043b\u0438\u0437 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0442\u0435\u0433 \u0441\u0430\u043c, \u0441\u043b\u0435\u0434\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0432\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430: \u043e\u0434\u0438\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 \u0432\u0435\u0442\u043a\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0440\u0435\u043b\u0438\u0437 \u0438 \u0442\u0435\u0433, \u0430 \u0442\u0435\u0433 \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0442\u0435\u0433\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d. \u0414\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u044f\u0432\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0439\u0442\u0435 release-\u0434\u0436\u043e\u0431 \u0432 \u0442\u0435\u0433\u043e\u0432\u043e\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435:<\/p>\n<pre><code class=\"yaml\">release-job:  rules:    - if: $CI_COMMIT_TAG      when: never    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH  script:    - echo \"Create release\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 GitLab \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f <code>registry.gitlab.com\/gitlab-org\/cli:latest<\/code>, \u043d\u043e \u0434\u043b\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u0431\u0440\u0430\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0440\u0435\u043b\u0438\u0437\u0430.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u043b\u0443\u0447\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u043b\u0438\u0437 \u0441\u0441\u044b\u043b\u0430\u043b\u0441\u044f \u043d\u0430 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u0442\u0435\u0433 \u043e\u0431\u0440\u0430\u0437\u0430 \u0438\u043b\u0438 digest, \u0430 \u043d\u0435 \u043d\u0430 <code>latest<\/code> \u0438\u043b\u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 \u0442\u0435\u0433 \u0432\u0435\u0442\u043a\u0438.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%BE%D0%B4%D0%B8%D0%BD%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>11. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u0441\u0435\u043a\u0440\u0435\u0442\u044b, OIDC, Vault \u0438 CI_JOB_TOKEN<\/h3>\n<h4>11.1. \u0421\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0447\u0430\u0441\u0442\u044c\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e<\/h4>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043c\u043e\u0436\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c Docker-\u043e\u0431\u0440\u0430\u0437\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 API;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u0432 Kubernetes;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0443\u0448\u0438\u0442\u044c \u0442\u0435\u0433\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u043b\u0438\u0437\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c downstream-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e.<\/p>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c include \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u0431\u0435\u0437 \u0440\u0435\u0432\u044c\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0438 \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u043e\u0431\u044b\u0447\u043d\u044b\u043c test-\u0434\u0436\u043e\u0431\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u0437 \u0444\u043e\u0440\u043a\u0430 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<h4>11.2. \u0421\u0435\u043a\u0440\u0435\u0442\u044b \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432<\/h4>\n<p>CI\/CD-\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0443\u0434\u043e\u0431\u043d\u044b, \u043d\u043e \u0434\u043b\u044f \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432: Vault, \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440.<\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 GitLab:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0440\u044b\u0442\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0440\u043e\u0442\u0430\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u0446\u0435\u043b\u0435\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u2014 \u043a\u0440\u0430\u0442\u043a\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 OIDC \u0438\u043b\u0438 \u0432\u044b\u0434\u0430\u0447\u0430 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0434\u0436\u043e\u0431\u0443 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443.<\/p>\n<h4>11.3. \u041f\u043e\u043d\u0438\u043c\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0438 secrets:<\/h4>\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u0436\u043e\u0431\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0410 <code>secrets:<\/code> \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0436\u043e\u0431\u043e\u043c \u044f\u0432\u043d\u043e.<\/p>\n<p>\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430. \u0427\u0435\u043c \u044f\u0432\u043d\u0435\u0435 \u0434\u0436\u043e\u0431 \u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u0435\u043a\u0440\u0435\u0442, \u0442\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<pre><code class=\"yaml\">variables:  AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0439 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 GitLab \u0432\u043e\u043e\u0431\u0449\u0435, \u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 OIDC.<\/p>\n<h4>11.4. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 OIDC ID-\u0442\u043e\u043a\u0435\u043d\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439<\/h4>\n<p>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 CI\/CD \u2014 \u044d\u0442\u043e \u0434\u043e\u043b\u0433\u0438\u0439 \u0440\u0430\u0434\u0438\u0443\u0441 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0415\u0433\u043e \u043d\u0430\u0434\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c, \u0440\u043e\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0438 \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u0443\u0442\u0435\u0447\u0451\u0442.<\/p>\n<p>OIDC-\u043f\u043e\u0434\u0445\u043e\u0434 \u043b\u0443\u0447\u0448\u0435: \u0434\u0436\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 ID-\u0442\u043e\u043a\u0435\u043d, \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0438\u043b\u0438 Vault \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 claims \u0438 \u0432\u044b\u0434\u0430\u0451\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f Vault:<\/p>\n<pre><code class=\"yaml\">deploy:  id_tokens:    VAULT_ID_TOKEN:      aud: https:\/\/vault.example.com  script:    - vault write auth\/jwt\/login role=gitlab-ci jwt=\"$VAULT_ID_TOKEN\"    - .\/deploy.sh<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0435 \u0434\u043e\u0432\u0435\u0440\u0438\u044f \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 claims \u0432\u0440\u043e\u0434\u0435 <code>project_id<\/code> \u0438 <code>namespace_id<\/code>, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e path-based \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041f\u0440\u043e\u0435\u043a\u0442 \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0430 ID \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0435\u0435.<\/p>\n<p>OIDC \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Vault. \u0422\u043e\u0442 \u0436\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043a \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438: AWS, GCP, Azure, Yandex Cloud \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 claims \u0442\u043e\u043a\u0435\u043d\u0430 \u0438 \u0432\u044b\u0434\u0430\u0451\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443, ref \u0438\u043b\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044e. \u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 GitLab \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0439 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<h4>11.5. \u0414\u043b\u044f Vault \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0440\u043e\u043b\u0438, bound claims, TTL \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h4>\n<p>\u0420\u043e\u043b\u044c Vault \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u00ab\u0432\u0441\u0451 \u0432\u0441\u0435\u043c\u00bb.<\/p>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>project\/namespace;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 refs;<\/p>\n<\/li>\n<li>\n<p>ref pattern;<\/p>\n<\/li>\n<li>\n<p>audience;<\/p>\n<\/li>\n<li>\n<p>TTL;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0443\u0436\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u0434\u043e\u043b\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0441\u0435\u043a\u0440\u0435\u0442, \u043d\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u043c\u0443 write-\u0434\u043e\u0441\u0442\u0443\u043f \u0438\u043b\u0438 wildcard-\u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<h4>11.6. \u0415\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0443 \u043d\u0443\u0436\u0435\u043d \u0444\u0430\u0439\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0438\u043b\u0438 file-backed \u0441\u0435\u043a\u0440\u0435\u0442\u044b<\/h4>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u0436\u0438\u0434\u0430\u044e\u0442 \u0444\u0430\u0439\u043b: kubeconfig, \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 Google, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, npmrc, SSH-\u043a\u043b\u044e\u0447.<\/p>\n<p>\u041d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0438\u043b\u0438 \u0441\u0435\u043a\u0440\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0444\u0430\u0439\u043b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">deploy:  script:    - kubectl --kubeconfig \"$KUBECONFIG_FILE\" apply -f k8s\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>11.7. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 CI_JOB_TOKEN<\/h4>\n<p><code>CI_JOB_TOKEN<\/code> \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u043e \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u0435\u0437\u043e\u0431\u0438\u0434\u043d\u044b\u043c.<\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b\/\u0433\u0440\u0443\u043f\u043f\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0442\u0430\u043c, \u0433\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u00ab\u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0434\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430\u00bb;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c job token \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0430\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u044d\u0442\u043e \u0443\u0436\u0435 \u043c\u0435\u0436\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043e\u0432\u0435\u0440\u0438\u044f.<\/p>\n<h4>11.8. \u041d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 Git push \u0447\u0435\u0440\u0435\u0437 CI_JOB_TOKEN \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b<\/h4>\n<p>Push \u0438\u0437 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432, \u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 GitOps-\u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432. \u041d\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c \u0430\u0442\u0430\u043a\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0432\u0435\u0442\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e push \u0447\u0435\u0440\u0435\u0437 job token \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0442\u0430\u043a, \u043a\u0430\u043a \u0432\u044b \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<\/li>\n<\/ul>\n<h4>11.9. \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0431\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u044b<\/h4>\n<p>\u0412 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043b\u043e\u0433\u0438 \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438: \u043f\u0443\u0442\u0438, \u0432\u0435\u0440\u0441\u0438\u0438, \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043c\u0435\u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432, \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u0438\u043c\u0435\u043d\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 URLs.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438 \u043d\u0430\u0440\u0443\u0436\u0443, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u044c\u0442\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432.<\/p>\n<h4>11.10. \u0414\u043b\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Secure Files<\/h4>\n<p>Keystore, provisioning profile, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Secure Files \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432.<\/p>\n<h4>11.11. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e, \u0433\u0434\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e<\/h4>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u0430\u043c\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442 SAST, \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>SAST;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0438\u0441\u043a \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>compliance-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>CODEOWNERS \u0434\u043b\u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0435\u043c \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0435\u0435 \u043f\u0440\u043e\u0435\u043a\u0442, \u0442\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0440\u043e\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439.<\/p>\n<h4>11.12. Fork MR \u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0432\u0440\u0430\u0436\u0434\u0435\u0431\u043d\u044b\u043c\u0438<\/h4>\n<p>MR \u0438\u0437 \u0444\u043e\u0440\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0434\u0451\u0440\u043d\u0443\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 endpoint, \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438\u0437 \u0444\u043e\u0440\u043a\u0430 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0435\u0432\u044c\u044e\u0439\u0442\u0435 \u043a\u043e\u0434 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0439\u0442\u0435, \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442.<\/p>\n<p>\u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0434\u043b\u044f MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0439\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e. \u041e\u0431\u044b\u0447\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0438\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u043c\u0438 refs \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B4%D0%B2%D0%B5%D0%BD%D0%B0%D0%B4%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u0434\u0432\u0435\u043d\u0430\u0434\u0434\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>12. \u0420\u0430\u043d\u043d\u0435\u0440\u044b, \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u0438 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<h4>12.1. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0434\u0438\u0443\u0441\u043e\u043c \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0420\u0430\u043d\u043d\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 instance, group \u0438\u043b\u0438 project. \u0427\u0435\u043c \u0448\u0438\u0440\u0435 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0434\u0438\u0443\u0441 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041e\u0431\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e:<\/p>\n<ul>\n<li>\n<p>\u043e\u0431\u0449\u0438\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>\u0433\u0440\u0443\u043f\u043f\u043e\u0432\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u2014 \u0434\u043b\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u2014 \u0434\u043b\u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u2014 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u0438 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0434\u0436\u043e\u0431\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u0435\u0433\u0438, \u0447\u0442\u043e\u0431\u044b \u0434\u0436\u043e\u0431 \u043f\u043e\u043f\u0430\u0434\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0440\u0430\u043d\u043d\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">deploy-production:  tags:    - prod-deploy  script:    - .\/deploy.sh production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>12.2. \u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0432\u0435\u0442\u043a\u0438, \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u0435<\/h4>\n<p>\u0417\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0442\u043a\u0443 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0417\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0417\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u043d\u043d\u0435\u0440 \u0442\u043e\u0436\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<\/p>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0438\u043b\u0438 \u0442\u0435\u0433\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 refs;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0436\u043e\u0431 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0439 \u043e\u0442\u043a\u0440\u044b\u0442, \u0432\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0430\u0431\u0435\u0435.<\/p>\n<h4>12.3. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0435 \u0438 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432<\/h4>\n<p>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u2014 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0440\u0435\u0434\u0430: \u0434\u0436\u043e\u0431 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f, VM \u0438\u043b\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u042d\u0442\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0440\u0438\u0441\u043a:<\/p>\n<ul>\n<li>\n<p>\u043a\u0440\u0430\u0436\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0434\u0436\u043e\u0431\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043b\u0430\u0442\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0433\u0440\u044f\u0437\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f Docker Machine \u0441 \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432\u0440\u043e\u0434\u0435 <code>MaxBuilds = 1<\/code>, \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u043d\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b\u0430 \u043c\u043d\u043e\u0433\u043e \u0434\u0436\u043e\u0431\u043e\u0432 \u043f\u043e\u0434\u0440\u044f\u0434.<\/p>\n<h4>12.4. Shell-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a<\/h4>\n<p>Shell-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0445\u043e\u0441\u0442 \u0440\u0430\u043d\u043d\u0435\u0440\u0430. \u042d\u0442\u043e \u043c\u043e\u0449\u043d\u043e, \u043d\u043e \u043e\u043f\u0430\u0441\u043d\u043e.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 shell \u043d\u0430 \u0445\u043e\u0441\u0442\u0435, \u043e\u043d \u043c\u043e\u0436\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u043e\u0433\u0430\u0442\u044c \u0441\u0435\u0442\u044c \u0445\u043e\u0441\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0436\u043e\u0431\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>Shell-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445. \u0414\u043b\u044f \u043e\u0431\u0449\u0438\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u0430\u044f \u0438\u0434\u0435\u044f.<\/p>\n<h4>12.5. Docker-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430<\/h4>\n<p>Docker-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \u0432 \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 Shell-\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f. \u041d\u043e \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0440\u0435\u0437\u043a\u043e \u043c\u0435\u043d\u044f\u044e\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0438\u0441\u043a\u0430.<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u0434\u0436\u043e\u0431 \u043e\u0442 non-root-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0433\u0434\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0431\u0438\u0440\u0430\u0439\u0442\u0435 <code>sudo<\/code>, \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u043d\u0443\u0436\u0435\u043d;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 SETUID\/SETGID \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u0436\u043e\u0431\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 host PID namespace;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 Docker socket \u0431\u0435\u0437 \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Docker socket (<code>\/var\/run\/docker.sock<\/code>) \u0447\u0430\u0441\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0432\u043d\u043e root-\u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u043a \u0445\u043e\u0441\u0442\u0443. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u043a\u0430\u043a \u00ab\u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u0443 DinD\u00bb, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f.<\/p>\n<h4>12.6. \u041f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u0430\u0445<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b \u0438\u043b\u0438 VM;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043f\u0443\u0441\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 refs;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0436\u0438\u0437\u043d\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u043d\u043d\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<h4>12.7. \u041d\u0430 \u043e\u0431\u0449\u0438\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u0430\u0445 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 pull_policy: if-not-present \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/h4>\n<p><code>if-not-present<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0430\u0441\u0435\u043d \u043d\u0430 \u043e\u0431\u0449\u0435\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435: \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0439 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u0440\u0443\u0433\u0438\u043c \u0434\u0436\u043e\u0431\u043e\u043c \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u0449\u0438\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 \u043d\u0435 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b.<\/p>\n<h4>12.8. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e \u0441 GIT_STRATEGY: fetch \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438<\/h4>\n<p><code>fetch<\/code> \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e. \u041d\u043e \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u0440\u0435\u0434\u0435 \u0441\u043e \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0432\u0435\u0440\u0438\u044f \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043e\u043f\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0438\u0441\u043a\u043e\u043c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u043d\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435.<\/p>\n<h4>12.9. \u0421\u0435\u0433\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0435\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432<\/h4>\n<p>\u0420\u0430\u043d\u043d\u0435\u0440 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0435 \u043c\u0435\u0440\u044b:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438\/\u043f\u043e\u0434\u0441\u0435\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043f\u0440\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e SSH;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a metadata endpoints;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 east-west \u0442\u0440\u0430\u0444\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u044f;<\/p>\n<\/li>\n<li>\n<p>egress-\u043f\u0440\u0430\u0432\u0438\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0443\u0434\u0438\u0442 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445, \u0433\u0434\u0435 metadata endpoint \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h4>12.10. \u0423\u0441\u0438\u043b\u0438\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u0449\u0438\u0442\u0443 \u0445\u043e\u0441\u0442\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430<\/h4>\n<p>\u041d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0430\u0440\u044b\u0435 SSH-\u043a\u043b\u044e\u0447\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u043e\u043a\u0435\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 sudoers;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0425\u043e\u0441\u0442 \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u2014 \u0447\u0430\u0441\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 CI\/CD. \u0415\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e VM.<\/p>\n<h4>12.11. \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439\u0442\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0438 \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0430\u043c<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u043d\u043d\u0435\u0440 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u0434\u0436\u043e\u0431\u044b \u0438\u0437 \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a, \u0438 \u0434\u0436\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u044f, \u0432\u044b \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u0434\u043e\u0432\u0435\u0440\u0438\u044f.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0439 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u043d\u0435\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0443\u043b \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0440\u0438\u0441\u043a, \u0447\u0442\u043e \u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0443\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%82%D1%80%D0%B8%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u0442\u0440\u0438\u043d\u0430\u0434\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>13. \u041e\u0442\u0447\u0451\u0442\u044b, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c<\/h3>\n<h4>13.1. \u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0439\u0442\u0435 JUnit-\u043e\u0442\u0447\u0451\u0442\u044b<\/h4>\n<p>\u041d\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u0441\u044b\u0440\u044b\u0435 \u043b\u043e\u0433\u0438 \u0442\u0435\u0441\u0442\u043e\u0432. GitLab \u0443\u043c\u0435\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 MR \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430.<\/p>\n<pre><code class=\"yaml\">test:  script:    - npm test -- --reporters=default --reporters=jest-junit  artifacts:    when: always    reports:      junit: junit.xml    paths:      - junit.xml<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>artifacts:when: always<\/code> \u0432\u0430\u0436\u0435\u043d: \u0435\u0441\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u0443\u043f\u0430\u043b\u0438, \u043e\u0442\u0447\u0451\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.<\/p>\n<h4>13.2. \u041d\u0435 \u043f\u0443\u0442\u0430\u0439\u0442\u0435 coverage \u0438 coverage_report<\/h4>\n<p><code>coverage:<\/code> \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0438\u0437 \u043b\u043e\u0433\u0430 \u0434\u0436\u043e\u0431\u0430.<\/p>\n<pre><code class=\"yaml\">test:  coverage: '\/All files[^|]*\\|[^|]*\\s+\\d+(?:\\.\\d+)?\/'<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>coverage_report<\/code> \u0434\u0430\u0451\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 diff MR.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441: GitLab \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 RE2 \u0434\u043b\u044f <code>coverage<\/code>, \u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0432 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>(?:...)<\/code>, \u0430 \u043d\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0432\u0440\u043e\u0434\u0435 <code>(...)<\/code>.<\/p>\n<pre><code class=\"yaml\">test:  artifacts:    reports:      coverage_report:        coverage_format: cobertura        path: coverage\/cobertura-coverage.xml<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0447\u0430\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u044b \u043e\u0431\u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430.<\/p>\n<h4>13.3. Code Quality \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/h4>\n<p>\u041d\u0435 \u043d\u0430\u0434\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043a\u0440\u0443\u0433 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u041b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u043d\u0442\u0435\u0440\u044b \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0436\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043e\u0442\u0447\u0451\u0442\u0430 Code Quality.<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 MR-\u0432\u0438\u0434\u0436\u0435\u0442\u0435, \u0430 \u043d\u0435 \u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0432 stdout.<\/p>\n<h4>13.4. \u0414\u043b\u044f UI\/E2E-\u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0439\u0442\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0430\u0434\u0430\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 \u0442\u0435\u0441\u0442, \u043b\u043e\u0433\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043c\u0430\u043b\u043e. \u041d\u0443\u0436\u043d\u044b:<\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0438\u0434\u0435\u043e;<\/p>\n<\/li>\n<li>\n<p>trace;<\/p>\n<\/li>\n<li>\n<p>HTML-\u043e\u0442\u0447\u0451\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043b\u043e\u0433\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"yaml\">e2e:  script:    - npm run e2e  artifacts:    when: always    paths:      - playwright-report\/      - test-results\/    expire_in: 7 days<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043f\u0440\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0412\u0438\u0434\u0435\u043e \u0438 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u044e\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b.<\/p>\n<h4>13.5. \u0414\u0435\u043b\u0430\u0439\u0442\u0435 MR-\u0432\u0438\u0434\u0436\u0435\u0442\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438<\/h4>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0436\u043e\u0431, \u043f\u0440\u043e\u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u043b\u043e\u0433 \u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 MR:<\/p>\n<ul>\n<li>\n<p>\u0442\u0435\u0441\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u0435\u043f\u043b\u043e\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0426\u0435\u043b\u044c CI\/CD \u2014 \u0434\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<h4>13.6. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0439\u0442\u0435 \u0437\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u043c \u043a\u0430\u043a \u0437\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439<\/h4>\n<p>\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0437\u0435\u043b\u0451\u043d\u044b\u0439\/\u043a\u0440\u0430\u0441\u043d\u044b\u0439\u00bb.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0434\u043e\u043b\u044e \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0440\u0435\u0434\u043d\u044e\u044e \u0438 p95 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u0441\u0442\u0430\u0434\u0438\u044f\u043c \u0438 \u0434\u0436\u043e\u0431\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0434\u0436\u043e\u0431\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043b\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0440\u043e\u0441\u0442 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u043e\u0441\u0442 \u0440\u0435\u0435\u0441\u0442\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043e\u0442\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 CI\/CD.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GitLab Analytics, API, exporter-\u043f\u043e\u0434\u0445\u043e\u0434\u044b, Prometheus\/Grafana \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b.<\/p>\n<h4>13.7. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/h4>\n<p>CI\/CD \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0436\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0441\u0445\u0435\u043c\u0443 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0435\u043f\u043b\u043e\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0443\u0447\u0451\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 CI\/CD-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/48f\/45f\/b0a\/48f45fb0afee39120462d201e3e84310.png\" alt=\"Mermaid \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0441\u0445\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0432 Markdown\" title=\"Mermaid \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0441\u0445\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0432 Markdown\" width=\"994\" height=\"188\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/48f\/45f\/b0a\/48f45fb0afee39120462d201e3e84310.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/48f\/45f\/b0a\/48f45fb0afee39120462d201e3e84310.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Mermaid \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0441\u0445\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0432 Markdown<\/figcaption><\/div>\n<\/figure>\n<h4>13.8. \u0423\u043b\u0443\u0447\u0448\u0430\u0439\u0442\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u0438 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438<\/h4>\n<p>\u041d\u0435 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c CI\/CD \u0437\u0430 \u043e\u0434\u0438\u043d MR.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a:<\/p>\n<ol>\n<li>\n<p>\u0418\u0437\u043c\u0435\u0440\u0438\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0439\u0442\u0438 \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0441\u0442\u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0430\u043a \u043f\u0440\u043e\u0449\u0435 \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u0443 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.<\/p>\n<h4>13.9. \u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0438\u0441\u043a\u0430<\/h4>\n<p>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u0442. \u041d\u043e \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0432\u0430\u0448\u0443 \u0432\u0435\u0440\u0441\u0438\u044e GitLab;<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/GitLab.com\" rel=\"noopener noreferrer nofollow\">GitLab.com<\/a> \u0438\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0443\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u043d\u043e\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0446\u0435\u043b\u044c \u0434\u0435\u043f\u043b\u043e\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0430\u0443\u0434\u0438\u0442\u0443 \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u0441\u0442\u0430\u0440\u044b\u0439 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0443\u0435\u0442 \u0441 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u043b\u0443\u0447\u0448\u0435 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B5%D1%82%D1%8B%D1%80%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u0447\u0435\u0442\u044b\u0440\u043d\u0430\u0434\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>14. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 .gitlab-ci.yml<\/h3>\n<p>\u041d\u0438\u0436\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0434\u043b\u044f \u0432\u0441\u0435, \u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u044f\u0437\u044b\u043a, \u0442\u0435\u0441\u0442\u044b, \u0440\u0435\u0435\u0441\u0442\u0440, \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441 \u043f\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438: \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0438\u0436\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0432\u0435\u0436\u0438\u0439 GitLab, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 18.3+. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 self-managed-\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u0441\u0442\u0430\u0440\u0435\u0435, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 <code>workflow:auto_cancel:on_job_failure<\/code>, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>$CI_MERGE_REQUEST_DRAFT<\/code> \u0438 <code>manual_confirmation<\/code> \u0434\u043b\u044f stop-\u0434\u0436\u043e\u0431\u043e\u0432. \u041d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u044d\u0442\u0438 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0438\u043b\u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0432\u0430\u0448\u0443 \u0432\u0435\u0440\u0441\u0438\u044e GitLab.<\/p>\n<pre><code class=\"yaml\">workflow:  auto_cancel:    on_new_commit: interruptible    on_job_failure: all  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_DRAFT == \"true\"      when: never    - if: $CI_COMMIT_TAG    - if: $CI_PIPELINE_SOURCE == \"schedule\"    - if: $CI_PIPELINE_SOURCE == \"api\"    - if: $CI_PIPELINE_SOURCE == \"trigger\"    - if: $CI_PIPELINE_SOURCE == \"pipeline\"    - if: $CI_PIPELINE_SOURCE == \"parent_pipeline\"    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == \"push\"      when: never    - if: $CI_COMMIT_BRANCHstages:  - validate  - test  - build  - deploydefault:  interruptible: true.node-job:  image: node:22-bookworm-slim  cache:    key:      files:        - package-lock.json    paths:      - .npm\/    policy: pull  before_script:    - npm ci --cache .npm --prefer-offline.common-rules:  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\"    - if: $CI_COMMIT_TAG    - if: $CI_PIPELINE_SOURCE == \"schedule\"    - if: $CI_PIPELINE_SOURCE == \"api\"    - if: $CI_PIPELINE_SOURCE == \"trigger\"    - if: $CI_PIPELINE_SOURCE == \"pipeline\"    - if: $CI_PIPELINE_SOURCE == \"parent_pipeline\"    - if: $CI_COMMIT_BRANCHdeps:  extends: .node-job  stage: validate  cache:    key:      files:        - package-lock.json    paths:      - .npm\/    policy: pull-push  rules:    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH  script:    - echo \"Dependency cache updated\"lint:  extends:    - .node-job    - .common-rules  stage: validate  needs: []  script:    - npm run linttest:  extends:    - .node-job    - .common-rules  stage: test  needs: []  script:    - npm test -- --ci --reporters=default --reporters=jest-junit --coverage  coverage: '\/All files[^|]*\\|[^|]*\\s+\\d+(?:\\.\\d+)?\/'  artifacts:    when: always    paths:      - junit.xml      - coverage\/    reports:      junit: junit.xml      coverage_report:        coverage_format: cobertura        path: coverage\/cobertura-coverage.xml    expire_in: 14 daysbuild-app:  extends:    - .node-job    - .common-rules  stage: build  needs:    - job: test      artifacts: false  script:    - npm run build  artifacts:    paths:      - dist\/    expire_in: 7 daysbuild-image-check:  stage: build  image:    name: moby\/buildkit:rootless    entrypoint: [\"\"]  needs:    - job: build-app      artifacts: true  variables:    BUILDKITD_FLAGS: --oci-worker-no-process-sandbox  script:    - |      buildctl-daemonless.sh build \\        --frontend dockerfile.v0 \\        --local context=. \\        --local dockerfile=. \\        --output type=oci,dest=\/tmp\/image.tar  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_SOURCE_PROJECT_ID != $CI_PROJECT_IDbuild-review-image:  stage: build  image:    name: moby\/buildkit:rootless    entrypoint: [\"\"]  needs:    - job: build-app      artifacts: true  variables:    BUILDKITD_FLAGS: --oci-worker-no-process-sandbox    CACHE_IMAGE: $CI_REGISTRY_IMAGE:buildcache    REVIEW_IMAGE: $CI_REGISTRY_IMAGE:review-$CI_COMMIT_SHA  before_script:    - mkdir -p ~\/.docker    - |      cat &gt; ~\/.docker\/config.json &lt;&lt;EOF      {        \"auths\": {          \"$CI_REGISTRY\": {            \"username\": \"$CI_REGISTRY_USER\",            \"password\": \"$CI_REGISTRY_PASSWORD\"          }        }      }      EOF  script:    - |      buildctl-daemonless.sh build \\        --frontend dockerfile.v0 \\        --local context=. \\        --local dockerfile=. \\        --import-cache type=registry,ref=$CACHE_IMAGE \\        --export-cache type=registry,ref=$CACHE_IMAGE,mode=max \\        --output type=image,name=$REVIEW_IMAGE,push=true  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_SOURCE_PROJECT_ID == $CI_PROJECT_IDbuild-image:  stage: build  image:    name: moby\/buildkit:rootless    entrypoint: [\"\"]  needs:    - job: build-app      artifacts: true  variables:    BUILDKITD_FLAGS: --oci-worker-no-process-sandbox    CACHE_IMAGE: $CI_REGISTRY_IMAGE:buildcache  before_script:    - mkdir -p ~\/.docker    - |      cat &gt; ~\/.docker\/config.json &lt;&lt;EOF      {        \"auths\": {          \"$CI_REGISTRY\": {            \"username\": \"$CI_REGISTRY_USER\",            \"password\": \"$CI_REGISTRY_PASSWORD\"          }        }      }      EOF  script:    - |      buildctl-daemonless.sh build \\        --frontend dockerfile.v0 \\        --local context=. \\        --local dockerfile=. \\        --import-cache type=registry,ref=$CACHE_IMAGE \\        --export-cache type=registry,ref=$CACHE_IMAGE,mode=max \\        --output type=image,name=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA,push=true  rules:    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCHreview-app:  stage: deploy  image: registry.example.com\/platform\/deploy-tools:1.0.0  needs:    - build-review-image  script:    - .\/deploy-review.sh \"$CI_REGISTRY_IMAGE:review-$CI_COMMIT_SHA\"  environment:    name: review\/$CI_COMMIT_REF_SLUG    url: https:\/\/$CI\\_ENVIRONMENT\\_SLUG.example.com    on_stop: stop-review    auto_stop_in: 1 week    deployment_tier: development  resource_group: review\/$CI_COMMIT_REF_SLUG  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_SOURCE_PROJECT_ID == $CI_PROJECT_IDstop-review:  stage: deploy  image: registry.example.com\/platform\/deploy-tools:1.0.0  script:    - .\/destroy-review.sh  environment:    name: review\/$CI_COMMIT_REF_SLUG    action: stop  resource_group: review\/$CI_COMMIT_REF_SLUG  when: manual  manual_confirmation: \"Destroy review environment?\"  allow_failure: true  rules:    - if: $CI_PIPELINE_SOURCE == \"merge_request_event\" &amp;&amp; $CI_MERGE_REQUEST_SOURCE_PROJECT_ID == $CI_PROJECT_IDdeploy-production:  stage: deploy  image: registry.example.com\/platform\/deploy-tools:1.0.0  interruptible: false  needs:    - build-image  resource_group: production  environment:    name: production    url: https:\/\/example.com    deployment_tier: production  rules:    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH      when: manual  manual_confirmation: \"Deploy to production?\"  script:    - .\/deploy.sh \"$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA\" production<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>workflow:rules<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0435\u0440\u043d\u043e\u0432\u043e\u0439 MR \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0433\u043e\u043d\u044f\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0433\u0438, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f, API, trigger, multi-project \u0438 parent-child downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u044f\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 <code>workflow<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c, API, parent-child \u0438 multi-project downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c \u0434\u043b\u044f \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u0435\u0442\u043e\u043a, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 push-\u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 <code>needs: []<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Node.js \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u044b \u0432 <code>.node-job<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043f\u043b\u043e\u0439- \u0438 stop-\u0434\u0436\u043e\u0431\u044b \u043d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442 <code>npm ci<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u0439- \u0438 stop-\u0434\u0436\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0434\u0435\u043f\u043b\u043e\u044f, \u0430 \u043d\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 <code>alpine<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0435\u0448 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0434\u0436\u043e\u0431\u043e\u043c <code>deps<\/code> \u0447\u0435\u0440\u0435\u0437 <code>policy: pull-push<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u044b \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e\u0442 JUnit \u0438 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0435, \u0430 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435\u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p><code>build-app<\/code> \u043d\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>MR \u0438\u0437 \u0444\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 Docker-\u0441\u0431\u043e\u0440\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 <code>build-image-check<\/code>, \u043d\u043e \u043d\u0435 \u043f\u0443\u0448\u0438\u0442 \u043e\u0431\u0440\u0430\u0437 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p>MR \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0434\u043b\u044f \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043e\u0431\u0440\u0430\u0437 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0432\u0435\u0442\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043e\u0431\u0440\u0430\u0437 \u0442\u0435\u0433\u0438\u0440\u0443\u0435\u0442\u0441\u044f SHA \u043a\u043e\u043c\u043c\u0438\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 <code>on_stop<\/code>, <code>auto_stop_in<\/code> \u0438 <code>resource_group<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>stop-review<\/code> \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>GIT_STRATEGY: none<\/code>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <code>.\/destroy-review.sh<\/code> \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0430\u0441\u043d\u044b\u0435 manual-\u0434\u0436\u043e\u0431\u044b \u0438\u043c\u0435\u044e\u0442 <code>manual_confirmation<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0434\u0435\u043f\u043b\u043e\u0439 \u0440\u0443\u0447\u043d\u043e\u0439, \u043d\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0447\u0435\u0440\u0435\u0437 <code>resource_group<\/code>.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%BF%D1%8F%D1%82%D0%BD%D0%B0%D0%B4%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u043f\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>15. \u041f\u043b\u0430\u043d \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0436\u0435 \u0436\u0438\u0432\u043e\u0439, \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0432\u0441\u0451 \u0441\u0440\u0430\u0437\u0443. \u0425\u043e\u0440\u043e\u0448\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f.<\/p>\n<h4>\u0428\u0430\u0433 1. \u041d\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432<\/h4>\n<ul>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>workflow:rules<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0431\u0440\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u0435\u0442\u043e\u043a \u0438 MR;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c <code>only\/except<\/code> \u0438 <code>rules<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u044f\u0432\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c push, MR, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u0442\u0435\u0433\u0438 \u0438 trigger-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 2. \u0423\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0446\u0438\u043a\u043b \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438<\/h4>\n<ul>\n<li>\n<p>\u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043b\u0438\u043d\u0442\u0438\u043d\u0433\/\u0441\u0442\u0438\u043b\u044c\/\u0441\u0445\u0435\u043c\u0443 \u0432 \u0440\u0430\u043d\u043d\u0438\u0435 \u0434\u0436\u043e\u0431\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>needs: []<\/code> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0439\u0442\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>interruptible<\/code> \u0442\u0430\u043c, \u0433\u0434\u0435 \u0434\u0436\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c auto-cancel \u0434\u043b\u044f \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 3. \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u0435\u0448\u0435\u043c \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c\u0438<\/h4>\n<ul>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0435\u0448 \u043e\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u043a\u0435\u0448\u0430 \u043e\u0442 lock-\u0444\u0430\u0439\u043b\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043a\u0435\u0448 \u0434\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0434\u0430\u0442\u044c <code>expire_in<\/code> \u0434\u043b\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0431\u0440\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0435\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 <code>dependencies<\/code>\/<code>needs:artifacts<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 4. \u041f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 Docker-\u0441\u0431\u043e\u0440\u043a\u0438 \u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438<\/h4>\n<ul>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432\/Buildah\/Podman \u0438\u043b\u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430 Docker Buildx;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0447\u0435\u0440\u0435\u0437 <code>ARG<\/code>\/<code>ENV<\/code>\/<code>COPY<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Dependency Proxy;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u044b \u043f\u043e SHA \u043a\u043e\u043c\u043c\u0438\u0442\u0430 \u0438\u043b\u0438 digest.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 5. \u0417\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0438 \u0442\u043e\u043a\u0435\u043d\u044b<\/h4>\n<ul>\n<li>\n<p>\u0443\u0431\u0440\u0430\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435\/\u0441\u043a\u0440\u044b\u0442\u044b\u0435\/\u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u043c refs \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 OIDC\/Vault \u0434\u043b\u044f \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c <code>CI_JOB_TOKEN<\/code> \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0433\u0434\u0435 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 6. \u041f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u0435\u043f\u043b\u043e\u044f \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a<\/h4>\n<ul>\n<li>\n<p>\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 <code>resource_group<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0442\u0443 \u043e\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e frontend\/\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\/\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0439\u0442.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 7. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<ul>\n<li>\n<p>\u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f YAML \u0432 <code>extends<\/code>\/<code>!reference<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c job-\u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>spec:inputs<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0438\u043d\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e <code>$CI_COMMIT_SHA<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0441\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 8. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c<\/h4>\n<ul>\n<li>\n<p>JUnit-\u043e\u0442\u0447\u0451\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0447\u0451\u0442\u044b \u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0447\u0451\u0442 Code Quality;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0447\u0435\u0440\u0435\u0437 <code>expose_as<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>CODEOWNERS \u0434\u043b\u044f CI\/CD-\u0444\u0430\u0439\u043b\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%88%D0%B5%D1%81%D1%82%D0%BD%D0%B0%D1%86%D0%B0%D1%82%D1%8C\" id=\"\u0448\u0435\u0441\u0442\u043d\u0430\u0446\u0430\u0442\u044c\"><\/a><\/p>\n<h3>16. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>GitLab CI\/CD \u043b\u0435\u0433\u043a\u043e \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0442\u044c. \u041f\u043e\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0430\u0440\u044b \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u0442\u0440\u0451\u0445 \u0441\u0442\u0430\u0434\u0438\u0439. \u041d\u043e \u0447\u0435\u043c \u0431\u043b\u0438\u0436\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043a \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0443, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 GitLab CI\/CD \u2014 \u044d\u0442\u043e \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 YAML. \u042d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u0433\u0434\u0435:<\/p>\n<ul>\n<li>\n<p>\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0436\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0430\u0434\u0430\u044e\u0442 \u0440\u0430\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0435\u0448 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442, \u0430 \u043d\u0435 \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u044e\u0442 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435;<\/p>\n<\/li>\n<li>\n<p>Docker-\u043e\u0431\u0440\u0430\u0437\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u043a\u0440\u0435\u0442\u044b \u043d\u0435 \u0436\u0438\u0432\u0443\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0438 \u043d\u0435 \u0440\u0430\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435\u043c \u0434\u0436\u043e\u0431\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u0439 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u043f\u0440\u0430\u0432\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u0438 \u043e\u0447\u0438\u0449\u0430\u044e\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0447\u0451\u0442\u044b \u0432\u0438\u0434\u043d\u044b \u0432 MR, \u0430 \u043d\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u044b \u0432 \u043b\u043e\u0433\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u043d\u043d\u0435\u0440\u044b \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u043d\u0435 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435\/\u043d\u0435\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f: CI\/CD \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 CI\/CD \u0438 \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u0438\u0437 \u0434\u043e\u0440\u043e\u0433 \u043a \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0443.<\/p>\n<hr\/>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1052024\/\">https:\/\/habr.com\/ru\/articles\/1052024\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439: \u043f\u0440\u0430\u043a\u0442\u0438\u043a \u043c\u043d\u043e\u0433\u043e, \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0432\u0430\u0436\u043d\u0430 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0431\u043e\u0440 best practices: \u043d\u0435 \u0432\u0441\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u043d\u0443\u0436\u043d\u044b \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0440\u0435\u0432\u044c\u044e, \u043f\u0440\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0443\u0442\u0435\u0447\u043a\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u0430 \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u044f\u0436\u0435\u043b\u043e\u0433\u043e \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u0430.\u042f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0433\u0440\u0435\u0439\u0434\u043e\u0432: \u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0433\u0438\u0433\u0438\u0435\u043d\u044b \u0432\u0440\u043e\u0434\u0435 workflow:rules, cache, artifacts \u0438 needs \u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u043e\u0432\u044b\u0445 \u0442\u0435\u043c \u0432\u0440\u043e\u0434\u0435 OIDC, Vault, CI_JOB_TOKEN, \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439 \u0441\u043b\u0438\u044f\u043d\u0438\u044f, BuildKit \u0431\u0435\u0437 root-\u043f\u0440\u0430\u0432, CI\/CD-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432.\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f\u0437\u044b\u043a \u043f\u043e\u0434\u0430\u0447\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0443\u0445\u043e\u0439, \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0439: \u0431\u0435\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0437\u0430\u0445\u043e\u0434\u043e\u0432, \u0431\u0435\u0437 \u0432\u043e\u0434\u044b \u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0440\u0430\u0434\u0438 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u0430. \u042f \u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u0437\u043e\u0440\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e, \u0430 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u043a\u0443, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430, \u0440\u0435\u0432\u044c\u044e .gitlab-ci.yml, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 GitLab \u0438\u043b\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0432 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 CI\/CD-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435.\u0427\u0442\u043e\u0431\u044b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u044f \u0440\u0430\u0437\u0431\u0438\u043b \u0435\u0451 \u043d\u0430 \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u044b\u0435 \u0431\u043b\u043e\u043a\u0438. \u041d\u0438\u0436\u0435 \u043e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \u043d\u0430\u0436\u0430\u043b\u0438 \u043d\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u2014 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0443.\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:\u0417\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e GitLab CI\/CD\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f YAML-\u0433\u0438\u0433\u0438\u0435\u043d\u0430rules, workflow:rules \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430DAG, needs, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c, \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\u041f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435: extends, \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044bParent\/child \u0438 multi-project \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u0435\u0448, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u0421\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, BuildKit, Dependency Proxy \u0438 \u043a\u0435\u0448 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435\u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0434\u0435\u043f\u043b\u043e\u0438MR, merged results pipelines \u0438 merge trains\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u0441\u0435\u043a\u0440\u0435\u0442\u044b, OIDC, Vault \u0438 CI_JOB_TOKEN\u0420\u0430\u043d\u043d\u0435\u0440\u044b, \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u0438 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\u041e\u0442\u0447\u0451\u0442\u044b, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 .gitlab-ci.yml\u041f\u043b\u0430\u043d \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0414\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438:Best Practices \u043f\u043e\u00a0Dockerfile: \u043e\u0442\u00a0\u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u0438 \u043a\u0435\u0448\u0430 \u0434\u043e\u00a0SBOM, Cosign \u0438 CI\/CD\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0430\u0448\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u0435\u0439\u0441\u0430\u043c, \u0441\u043f\u043e\u0440\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c, \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u043e\u0448\u0438\u0431\u043a\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u043b\u0438 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438, \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c. \u042f \u0447\u0438\u0442\u0430\u044e \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b: \u0443\u0442\u043e\u0447\u043d\u044f\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u044c\u044e \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438 \u0442\u043e\u0447\u043d\u0435\u0435.1. \u0417\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e GitLab CI\/CDGitLab CI\/CD \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:stages:  &#8212; build  &#8212; test  &#8212; deploy\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0445\u0432\u0430\u0442\u0430\u0435\u0442. \u0415\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0430, \u0435\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u044b, \u0435\u0441\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439. \u041d\u043e \u043f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0412 \u043d\u0451\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432, \u043a\u0435\u0448\u0438, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b, \u0441\u0435\u043a\u0440\u0435\u0442\u044b, \u0440\u0435\u0432\u044c\u044e-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, child-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0435\u043f\u043b\u043e\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, release-\u0434\u0436\u043e\u0431\u044b \u0438 \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.\u041f\u043b\u043e\u0445\u043e\u0439 GitLab CI\/CD \u043e\u0431\u044b\u0447\u043d\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443. \u041e\u043d \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0440\u043e\u0433\u0438\u043c, \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b\u043c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0436\u0434\u0451\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d 40 \u043c\u0438\u043d\u0443\u0442. \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0432\u0435\u0442\u043e\u043a \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432. \u041f\u043e\u0442\u043e\u043c \u043e\u0434\u0438\u043d \u0434\u0436\u043e\u0431 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0435\u043a\u0440\u0435\u0442. \u0417\u0430\u0442\u0435\u043c \u0434\u0432\u0430 \u0434\u0435\u043f\u043b\u043e\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435. \u041f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u0431\u0449\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u043f\u043e main, \u0432\u0447\u0435\u0440\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0438 \u0441\u043b\u043e\u043c\u0430\u043b \u0432\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b.\u0425\u043e\u0440\u043e\u0448\u0438\u0439 GitLab CI\/CD \u0440\u0435\u0448\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0447 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e:\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043c\u043c\u0438\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439, \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d. \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0435\u0448\u0430, \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u043b\u0438 \u043d\u0435\u044f\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u044d\u0442\u043e \u0443\u0436\u0435 \u0440\u0438\u0441\u043a.\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0441\u043b\u043e\u043c\u0430\u043b \u043b\u0438 \u043e\u043d \u043a\u043e\u0434, \u0441\u0442\u0438\u043b\u044c, \u0442\u0435\u0441\u0442\u044b, \u0441\u0431\u043e\u0440\u043a\u0443 \u0438\u043b\u0438 \u0434\u0435\u043f\u043b\u043e\u0439. \u0427\u0435\u043c \u043f\u043e\u0437\u0436\u0435 \u043f\u0430\u0434\u0430\u0435\u0442 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0442\u0435\u043c \u0434\u043e\u0440\u043e\u0436\u0435 \u043e\u043d\u0430 \u0441\u0442\u043e\u0438\u0442.\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c. \u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c, \u0442\u043e\u043a\u0435\u043d\u0430\u043c, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c, \u0440\u0435\u0435\u0441\u0442\u0440\u0443, \u043e\u0431\u043b\u0430\u043a\u0430\u043c \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u043c. \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u041f\u041e, \u044d\u0442\u043e \u043d\u0435 \u00ab\u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f\u00bb.\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0430\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430. \u0414\u0435\u043f\u043b\u043e\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c \u043f\u043e \u043f\u0440\u0430\u0432\u0430\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0440\u0435\u0447\u044c \u043f\u0440\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433, \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0438 Kubernetes.\u0421\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u043e\u0441\u0442\u044c. .gitlab-ci.yml \u0434\u043e\u043b\u0436\u0435\u043d \u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0432\u0442\u043e\u0440. \u0415\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, DevOps, SRE, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u043e\u0432\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435.\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044c \u0442\u0443\u0442 \u0442\u0430\u043a\u0430\u044f: CI\/CD \u2014 \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0441\u0442\u043e, \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c bash-\u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u042d\u0442\u043e \u0441\u043b\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430.2. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f YAML-\u0433\u0438\u0433\u0438\u0435\u043d\u04302.1. \u0414\u0435\u0440\u0436\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 .gitlab-ci.yml \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 .gitlab-ci.yml \u2014 \u044d\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 CI\/CD-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u0442\u044c:\u043a\u0430\u043a\u0438\u0435 \u0441\u0442\u0430\u0434\u0438\u0438 \u0435\u0441\u0442\u044c \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435;\u043a\u0430\u043a\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f;\u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b;\u043a\u0430\u043a\u0438\u0435 \u0434\u0436\u043e\u0431\u044b \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a lint\/test\/\u0441\u0431\u043e\u0440\u043a\u0430\/\u0434\u0435\u043f\u043b\u043e\u0439;\u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u0434\u0436\u043e\u0431\u0430\u043c\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b;\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f \u0432\u0435\u0442\u043e\u043a, MR, \u0442\u0435\u0433\u043e\u0432 \u0438 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439.\u041f\u043b\u043e\u0445\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u044b\u043d\u044e \u0438\u0437 \u0441\u043e\u0442\u0435\u043d \u0441\u0442\u0440\u043e\u043a bash, \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432 \u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.\u041b\u0443\u0447\u0448\u0435:include:  &#8212; local: .gitlab\/ci\/lint.yml  &#8212; local: .gitlab\/ci\/test.yml  &#8212; local: .gitlab\/ci\/build.yml  &#8212; local: .gitlab\/ci\/deploy.ymlstages:  &#8212; lint  &#8212; test  &#8212; build  &#8212; deploy\u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0439, \u0430 \u043d\u0435 \u0441\u0432\u0430\u043b\u043a\u043e\u0439. \u0414\u0435\u0442\u0430\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043d\u043e \u0441\u0430\u043c\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439.2.2. \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0435 \u0432 default, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u043c\u0443\u0441\u043e\u0440\u043d\u0443\u044e \u043a\u043e\u0440\u0437\u0438\u043d\u0443default \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0434\u0436\u043e\u0431\u043e\u0432: \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432, \u043a\u0435\u0448, \u0442\u0435\u0433\u0438, before_script, timeout \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.\u041f\u0440\u0438\u043c\u0435\u0440:default:  image: node:22-bookworm-slim  interruptible: true  before_script:    &#8212; node &#8212;version    &#8212; npm &#8212;version\u042d\u0442\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 image \u0438 before_script \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0436\u043e\u0431. \u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u0440\u0430\u0439\u043d\u043e\u0441\u0442\u044c: \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432 default \u0432\u0441\u0451 \u043f\u043e\u0434\u0440\u044f\u0434. \u0427\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u0448\u0430\u043d\u0441, \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0436\u043e\u0431 \u043d\u0430\u0447\u043d\u0451\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.\u0415\u0441\u043b\u0438 \u0434\u0436\u043e\u0431 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 default, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u044f\u0432\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:release:  inherit:    default: false  image: alpine:3.20  script:    &#8212; .\/release.sh\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:sensitive-check:  inherit:    variables: false  script:    &#8212; .\/run-isolated-check.sh\u0425\u043e\u0440\u043e\u0448\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u2014 \u043d\u0435 \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0430 \u044f\u0432\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0433\u0434\u0435 \u0434\u0436\u043e\u0431 \u0436\u0438\u0432\u0451\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f.2.3. \u041d\u0435 \u0445\u0430\u0440\u0434\u043a\u043e\u0434\u044c\u0442\u0435 main, master \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0451\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0415\u0441\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0435 \u0437\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e main, master, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0433\u0440\u0443\u043f\u043f, \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.\u041f\u043b\u043e\u0445\u043e:rules:  &#8212; if: $CI_COMMIT_BRANCH == &#171;main&#187;\u041b\u0443\u0447\u0448\u0435:rules:  &#8212; if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH$CI_DEFAULT_BRANCH \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0439. \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043e\u0431\u0449\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0432\u0435\u0442\u043a\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.\u0415\u0441\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0442\u043e\u0447\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u044f\u0432\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0418\u043d\u0430\u0447\u0435 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c, \u043d\u043e \u043b\u043e\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432\u0435\u0442\u043e\u043a.2.4. \u041f\u0438\u0448\u0438\u0442\u0435 shell-\u0431\u043b\u043e\u043a\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044cCI\/CD \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 bash-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 YAML. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 shell-\u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0434\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434.\u041f\u043b\u043e\u0445\u043e:script:  &#8212; apk add curl jq bash &amp;&amp; curl -sSL https:\/\/example.com\/script.sh | bash &amp;&amp; .\/deploy.sh prod\u041b\u0443\u0447\u0448\u0435:script:  &#8212; |    set -euo pipefail    apk add &#8212;no-cache curl jq bash    curl -fsSLo \/tmp\/script.sh https:\/\/example.com\/script.sh    chmod +x \/tmp\/script.sh    \/tmp\/script.sh    .\/deploy.sh prod\u0422\u0430\u043a\u043e\u0439 \u0434\u0436\u043e\u0431 \u043f\u0440\u043e\u0449\u0435 \u0447\u0438\u0442\u0430\u0442\u044c, \u043f\u0440\u043e\u0449\u0435 \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0449\u0435 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u043f\u0440\u043e \u0434\u0435\u043f\u043b\u043e\u0439, \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438, \u0432\u043d\u0435\u0448\u043d\u0438\u0435 API \u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0435\u043b\u0438\u0437\u043e\u0432.2.5. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 CI-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043e merge\u041e\u0448\u0438\u0431\u043a\u0438 \u0432 .gitlab-ci.yml \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043b\u043e\u043c\u0430\u044e\u0442 \u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0430 \u0441\u0430\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 CI Lint, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 expressions \u0438 \u0440\u0435\u0432\u044c\u044e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 CI-\u0444\u0430\u0439\u043b\u0430\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 CI-\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 CODEOWNERS \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a. \u0415\u0441\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c .gitlab-ci.yml, \u043e\u043d \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0443\u0432\u0438\u0434\u044f\u0442 \u0434\u0436\u043e\u0431\u044b.\u041f\u0440\u0438\u043c\u0435\u0440 CODEOWNERS:.gitlab-ci.yml       @platform-team @security-team.gitlab\/ci\/**        @platform-team @security-team\u0414\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c. \u0414\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u0438\u0433\u0438\u0435\u043d\u0430.3. rules, workflow:rules \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u04303.1. \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 workflow:rules\u0422\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0449\u0438:workflow:rules \u0440\u0435\u0448\u0430\u0435\u0442, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u043e\u043e\u0431\u0449\u0435;rules \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430 \u0440\u0435\u0448\u0430\u044e\u0442, \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0436\u043e\u0431 \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e rules \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0436\u043e\u0431\u0430, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445. \u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0443\u0431\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u0432\u0435\u0442\u043e\u043a \u0438 MR, \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a.\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0437\u0440\u0435\u043b\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0434\u043b\u044f \u0432\u0435\u0442\u043a\u0438 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 MR:workflow:  rules:    &#8212; if: $CI_PIPELINE_SOURCE == &#171;merge_request_event&#187;    &#8212; if: $CI_COMMIT_BRANCH &amp;&amp; $CI_OPEN_MERGE_REQUESTS &amp;&amp; $CI_PIPELINE_SOURCE == &#171;push&#187;      when: never    &#8212; if: $CI_COMMIT_BRANCH\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:\u0435\u0441\u043b\u0438 \u044d\u0442\u043e MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c;\u0435\u0441\u043b\u0438 \u044d\u0442\u043e push-based \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438, \u043d\u043e \u043f\u043e \u0432\u0435\u0442\u043a\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 MR \u2014 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c;\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0431\u0435\u0437 MR \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438.\u0423\u0441\u043b\u043e\u0432\u0438\u0435 &amp;&amp; $CI_PIPELINE_SOURCE == &#171;push&#187; \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c, API, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438 downstream-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c $CI_COMMIT_BRANCH, \u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0422\u0430\u043a GitLab \u043d\u0435 \u0433\u043e\u043d\u044f\u0435\u0442 \u0434\u0432\u0430 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043c\u043c\u0438\u0442: \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432\u0435\u0442\u043a\u0438 \u0438 MR-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043d\u043e \u043d\u0435 \u043b\u043e\u043c\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432.3.2. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CI_PIPELINE_SOURCE \u043a\u0430\u043a \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043b\u043e\u0433\u0438\u043a\u0438CI_PIPELINE_SOURCE \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0451\u043b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d: push, MR, schedule, API, trigger, parent-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 web-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0434\u043b\u044f \u0432\u0435\u0442\u043e\u043a \u0438 \u0442\u0435\u0433\u043e\u0432 \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c, \u0430 \u043e\u0431\u0449\u0438\u043c\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043f\u043e $CI_COMMIT_BRANCH \u0438 $CI_COMMIT_TAG. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-485082","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=485082"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485082\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=485082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=485082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=485082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}