ci: переезд на репозиторий jt4d/jt4d
Имена образов и стендов берутся из github.repository, домен стенда — *.jt4d.jt4d.ru.net.
This commit is contained in:
1 parent
db4eb04092
commit
fc13c66b0d
7 files changed
+19
-19
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
title: 'GEO Helm'
|
title: 'GEO Helm'
|
||||||
project:
|
project:
|
||||||
org: 'geo-helm'
|
org: 'jt4d'
|
||||||
repo: 'geo-platform'
|
repo: 'jt4d'
|
||||||
@@ -56,8 +56,8 @@ jobs:
|
|||||||
context: apps/web
|
context: apps/web
|
||||||
file: apps/web/Dockerfile
|
file: apps/web/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.jt4d.ru/geo-helm/geo-platform/web:${{ github.head_ref || github.ref_name }}
|
tags: git.jt4d.ru/${{ github.repository }}/web:${{ github.head_ref || github.ref_name }}
|
||||||
cache-from: git.jt4d.ru/geo-helm/geo-platform/web:latest
|
cache-from: git.jt4d.ru/${{ github.repository }}/web:latest
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.ref.name=${{ github.head_ref || github.ref_name }}
|
org.opencontainers.image.ref.name=${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
@@ -70,8 +70,8 @@ jobs:
|
|||||||
context: apps/api
|
context: apps/api
|
||||||
file: apps/api/Dockerfile
|
file: apps/api/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.jt4d.ru/geo-helm/geo-platform/api:${{ github.head_ref || github.ref_name }}
|
tags: git.jt4d.ru/${{ github.repository }}/api:${{ github.head_ref || github.ref_name }}
|
||||||
cache-from: git.jt4d.ru/geo-helm/geo-platform/api:latest
|
cache-from: git.jt4d.ru/${{ github.repository }}/api:latest
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.ref.name=${{ github.head_ref || github.ref_name }}
|
org.opencontainers.image.ref.name=${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ jobs:
|
|||||||
context: apps/web
|
context: apps/web
|
||||||
file: apps/web/Dockerfile
|
file: apps/web/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.jt4d.ru/geo-helm/geo-platform/web:${{ steps.version.outputs.VERSION }}
|
tags: git.jt4d.ru/${{ github.repository }}/web:${{ steps.version.outputs.VERSION }}
|
||||||
cache-from: git.jt4d.ru/geo-helm/geo-platform/web:master
|
cache-from: git.jt4d.ru/${{ github.repository }}/web:master
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.ref.name=${{ steps.version.outputs.VERSION }}
|
org.opencontainers.image.ref.name=${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
@@ -88,8 +88,8 @@ jobs:
|
|||||||
context: apps/api
|
context: apps/api
|
||||||
file: apps/api/Dockerfile
|
file: apps/api/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.jt4d.ru/geo-helm/geo-platform/api:${{ steps.version.outputs.VERSION }}
|
tags: git.jt4d.ru/${{ github.repository }}/api:${{ steps.version.outputs.VERSION }}
|
||||||
cache-from: git.jt4d.ru/geo-helm/geo-platform/api:master
|
cache-from: git.jt4d.ru/${{ github.repository }}/api:master
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.ref.name=${{ steps.version.outputs.VERSION }}
|
org.opencontainers.image.ref.name=${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.igeo.pro {
|
jt4d.ru, http://*.jt4d.jt4d.ru.net {
|
||||||
root * /app
|
root * /app
|
||||||
encode gzip
|
encode gzip
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
container_name: geo-platform_web
|
container_name: geo-platform_web
|
||||||
image: git.jt4d.ru/geo-helm/geo-platform/web:${VERSION}
|
image: git.jt4d.ru/jt4d/jt4d/web:${VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- '80:80'
|
||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
container_name: geo-platform_api
|
container_name: geo-platform_api
|
||||||
image: git.jt4d.ru/geo-helm/geo-platform/api:${VERSION}
|
image: git.jt4d.ru/jt4d/jt4d/api:${VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
container_name: geo-helm_${BRANCH}_web
|
container_name: jt4d_${BRANCH}_web
|
||||||
image: git.jt4d.ru/geo-helm/geo-platform/web:${BRANCH}
|
image: git.jt4d.ru/jt4d/jt4d/web:${BRANCH}
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_PORT: 80
|
VIRTUAL_PORT: 80
|
||||||
VIRTUAL_HOST: ${BRANCH}.geo-platform.geo-helm.jt4d.ru.net
|
VIRTUAL_HOST: ${BRANCH}.jt4d.jt4d.ru.net
|
||||||
HTTPS_METHOD: noredirect
|
HTTPS_METHOD: noredirect
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- 'net'
|
- 'net'
|
||||||
|
|
||||||
api:
|
api:
|
||||||
container_name: geo-helm_${BRANCH}_api
|
container_name: jt4d_${BRANCH}_api
|
||||||
image: git.jt4d.ru/geo-helm/geo-platform/api:${BRANCH}
|
image: git.jt4d.ru/jt4d/jt4d/api:${BRANCH}
|
||||||
environment:
|
environment:
|
||||||
# Приложение и typeorm CLI читают только POSTGRES_*; в .env каталога
|
# Приложение и typeorm CLI читают только POSTGRES_*; в .env каталога
|
||||||
# деплоя переменные исторически называются DB_*. Синтаксис ${X:-}
|
# деплоя переменные исторически называются DB_*. Синтаксис ${X:-}
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ runbook отката.
|
|||||||
расхождении, и следующий деплой упадёт снова.
|
расхождении, и следующий деплой упадёт снова.
|
||||||
4. **Откатить образ, если сервис сломан.** Предыдущий тег — это предыдущий тег `v*` в репозитории
|
4. **Откатить образ, если сервис сломан.** Предыдущий тег — это предыдущий тег `v*` в репозитории
|
||||||
(`git tag --sort=-creatordate | head`); что именно скачано на хост, видно в
|
(`git tag --sort=-creatordate | head`); что именно скачано на хост, видно в
|
||||||
`docker images git.jt4d.ru/geo-helm/geo-platform/api`:
|
`docker images git.jt4d.ru/jt4d/jt4d/api`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /srv/geo-platform
|
cd /srv/geo-platform
|
||||||
|
|||||||
Reference in new issue
Block a user