Compare commits
4 Commits
5e386d7df8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7d04357e5 | ||
|
|
a14f1e50cd | ||
|
|
5e7f76d470 | ||
|
|
4f1a6b1c1b |
@@ -37,8 +37,8 @@ jobs:
|
|||||||
- name: Update infrastructure repository
|
- name: Update infrastructure repository
|
||||||
run: |
|
run: |
|
||||||
# Клонируем инфра-репозиторий
|
# Клонируем инфра-репозиторий
|
||||||
git clone https://${{ secrets.USER }}:${{ secrets.GITEA }}@gitea.apps.kopikopi.com.ru/examples/nginx-intrasture.git
|
git clone https://${{ secrets.USER }}:${{ secrets.GITEA }}@git.apps.kopikopi.com.ru/examples/nginx-infra.git
|
||||||
cd nginx-intrasture/apps/static-site
|
cd nginx-infra/apps/static-site
|
||||||
|
|
||||||
# Простое решение: используем sed для изменения deployment.yaml
|
# Простое решение: используем sed для изменения deployment.yaml
|
||||||
NEW_IMAGE="harbor.apps.kopikopi.com.ru/drone/test:${{ steps.vars.outputs.sha_short }}"
|
NEW_IMAGE="harbor.apps.kopikopi.com.ru/drone/test:${{ steps.vars.outputs.sha_short }}"
|
||||||
@@ -55,4 +55,4 @@ jobs:
|
|||||||
git config user.email "ci-cd@kopikopi.com.ru"
|
git config user.email "ci-cd@kopikopi.com.ru"
|
||||||
git add deployment.yaml
|
git add deployment.yaml
|
||||||
git commit -m "Update image to ${{ steps.vars.outputs.sha_short }}"
|
git commit -m "Update image to ${{ steps.vars.outputs.sha_short }}"
|
||||||
git push
|
git push
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head><title>World</title></head>
|
<head><title>World</title></head>
|
||||||
<body>
|
<body>
|
||||||
<h1>hello world 2</h1>
|
<h1>hello world 4</h1>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user