Merge pull request 'ci: бутстрап PyYAML валидатора в runner-образе' (#25) from fix-runner-pyyaml into main
Main: tests, deploy, autotests / java (push) Successful in 44s
Main: tests, deploy, autotests / web (push) Successful in 29s
Main: tests, deploy, autotests / images (push) Successful in 5m0s
Main: tests, deploy, autotests / deploy (push) Successful in 1m46s
Main: tests, deploy, autotests / autotests (push) Successful in 1m1s
Main: tests, deploy, autotests / rollback (push) Has been skipped
Main: tests, deploy, autotests / java (push) Successful in 44s
Main: tests, deploy, autotests / web (push) Successful in 29s
Main: tests, deploy, autotests / images (push) Successful in 5m0s
Main: tests, deploy, autotests / deploy (push) Successful in 1m46s
Main: tests, deploy, autotests / autotests (push) Successful in 1m1s
Main: tests, deploy, autotests / rollback (push) Has been skipped
Reviewed-on: #25
This commit was merged in pull request #25.
This commit is contained in:
@@ -230,6 +230,13 @@ jobs:
|
||||
location / { proxy_pass \$upstream_web; }
|
||||
}
|
||||
NGINX
|
||||
# в образе runner'а PyYAML нет (рег. run 484: deploy и rollback — оба умерли
|
||||
# на этом шаге, прод не тронут) — ставим по месту; валидация обязана
|
||||
# отработать ДО переноса файлов на прод
|
||||
python3 -c 'import yaml' 2>/dev/null \
|
||||
|| python3 -m pip install -q pyyaml 2>/dev/null \
|
||||
|| python3 -m pip install -q --break-system-packages pyyaml 2>/dev/null \
|
||||
|| { apt-get update -q && apt-get install -y -q python3-yaml; }
|
||||
python3 -c 'import yaml; yaml.safe_load(open("docker-compose.yml"))'
|
||||
|
||||
- name: Upload and deploy
|
||||
|
||||
Reference in New Issue
Block a user