chore: update CI

This commit is contained in:
2026-06-14 17:49:58 +02:00
parent ad8ecbe452
commit 3c92a0371f
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -5,12 +5,10 @@ on:
branches: [main, pre-prod]
paths:
- "frontend-prep/**"
- "docker/frontend/**"
pull_request:
branches: [main, pre-prod]
paths:
- "frontend-prep/**"
- "docker/frontend/**"
jobs:
lint-typecheck:
@@ -98,6 +96,7 @@ jobs:
name: Deploy to server
needs: docker
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: SSH deploy
@@ -107,5 +106,5 @@ jobs:
username: ${{ secrets.SERVER_USER }}
key: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && secrets.SERVER_SSH_KEY_PROD || secrets.SERVER_SSH_KEY_PRE_PROD }}
script: |
docker compose -f ${{ secrets.COMPOSE_PATH }} pull frontend
docker compose -f ${{ secrets.COMPOSE_PATH }} up -d --no-deps frontend
docker compose -f ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && secrets.COMPOSE_PATH_PROD || secrets.COMPOSE_PATH_PRE_PROD }} pull frontend
docker compose -f ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && secrets.COMPOSE_PATH_PROD || secrets.COMPOSE_PATH_PRE_PROD }} up -d --no-deps frontend