diff --git a/.docuservix.yml b/.docuservix.yml index beaa68e..b8cb545 100644 --- a/.docuservix.yml +++ b/.docuservix.yml @@ -1,4 +1,4 @@ title: 'GEO Helm' project: - org: 'geo-helm' - repo: 'geo-platform' + org: 'jt4d' + repo: 'jt4d' diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3f00c13..060642b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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 }} diff --git a/.gitea/workflows/production.yaml b/.gitea/workflows/production.yaml index 2ca6a2d..a435632 100644 --- a/.gitea/workflows/production.yaml +++ b/.gitea/workflows/production.yaml @@ -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 }} diff --git a/apps/web/Caddyfile b/apps/web/Caddyfile index ab41b5b..6292369 100644 --- a/apps/web/Caddyfile +++ b/apps/web/Caddyfile @@ -5,7 +5,7 @@ } } -app.igeo.pro { +jt4d.ru, http://*.jt4d.jt4d.ru.net { root * /app encode gzip diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 0f666cf..cc8625d 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -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: diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml index d846d3f..e461a4b 100644 --- a/docker-compose.staging.yml +++ b/docker-compose.staging.yml @@ -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:-} diff --git a/docs/90-deploy/10-migrations.md b/docs/90-deploy/10-migrations.md index 3f6c397..c041dd1 100644 --- a/docs/90-deploy/10-migrations.md +++ b/docs/90-deploy/10-migrations.md @@ -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