Compare commits

..

8 commits

Author SHA1 Message Date
Sergejs Kozinecs
10500c5492 Added analytics
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 1m33s
2026-07-29 20:09:45 +03:00
Sergejs Kozinecs
d1b5e4518a Fix resolver in docker compose
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 1m51s
2026-07-29 19:52:36 +03:00
Sergejs Kozinecs
da35af4256 Updated docker compose
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 1m24s
2026-07-29 19:47:22 +03:00
Sergejs Kozinecs
8b3a253269 Removed comment
Some checks failed
Build and Deploy Astro Landing / deploy (push) Failing after 2m8s
2026-07-29 19:41:10 +03:00
Sergejs Kozinecs
a3fc5bc3e2 Fixing yml style
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 12s
2026-07-29 19:36:02 +03:00
Sergejs Kozinecs
e210185342 Modified delpoy yml
Some checks failed
Build and Deploy Astro Landing / deploy (push) Failing after 1s
2026-07-29 19:34:41 +03:00
Sergejs Kozinecs
496619e8fe Change to direct github link
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 9s
2026-07-29 19:16:45 +03:00
Sergejs Kozinecs
a058c72537 Update version ssh action
Some checks failed
Build and Deploy Astro Landing / deploy (push) Failing after 6s
2026-07-29 19:15:20 +03:00
3 changed files with 16 additions and 12 deletions

View file

@ -8,21 +8,21 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest # Метка вашего Forgejo Runner
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS via SSH
uses: appleboy/ssh-action@v1.0.3
uses: https://github.com/appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: 22
script: |
# 1. Переходим в директорию лендинга
set -e
cd /var/www/Landing
# 2. Подтягиваем свежие коммиты из Git
git pull origin main
# 3. Пересобираем Docker-образ и перезапускаем контейнер
docker compose up -d --build
git fetch --all
git reset --hard origin/${{ github.ref_name }}
docker compose build --no-cache
docker compose up -d --force-recreate

View file

@ -1,6 +1,5 @@
services:
midcreative:
# Оставляем image, чтобы CI/CD мог за push/pull обновлять образ
image: midcreative:latest
build:
context: .
@ -17,12 +16,13 @@ services:
- traefik_proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.midcreative.rule=Host(`midcreative.eu`) || Host(`www.midcreative.eu`)"
- "traefik.http.routers.midcreative.rule=Host(`midcreative.eu`)"
- "traefik.http.routers.midcreative.entrypoints=websecure"
- "traefik.http.routers.midcreative.tls=true"
- "traefik.http.routers.midcreative.tls.certresolver=letsencrypt"
- "traefik.http.routers.midcreative.tls.certresolver=myresolver"
- "traefik.http.services.midcreative.loadbalancer.server.port=4321"
networks:
traefik_proxy:
external: true
name: traefik-net

View file

@ -51,3 +51,7 @@ const { title, description, image = FallbackImage } = Astro.props;
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<script
defer
src="https://analytics.midcreative.eu/script.js"
data-website-id="8bb6c1a1-17df-4882-a267-ce35df273d44"></script>