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