add cicd part 2 practice
This commit is contained in:
Sergey
2021-12-14 18:57:25 +03:00
committed by GitHub
parent f905acf9c6
commit a37bfb6345
13 changed files with 715 additions and 0 deletions
@@ -0,0 +1,18 @@
# Добавляем pre-install hook с миграцией БД
## 1. Копируем манифест deployment и job.migrate
```
cp job.migrate.yaml ~/xpaste/.helm/templates/
cp deployment.yaml ~/xpaste/.helm/templates/
```
## 2. Пушим, ждем запуска, рассматриваем
```
cd ~/xpaste
git add .helm/templates/job.migrate.yaml
git add .helm/templates/deployment.yaml
git commit -m "Add migrate job"
git push
```