fix(ci): update paths after repo flatten
- Remove `cd padelnomics` (subdir no longer exists) - pytest and ruff now target web/tests/ and web/src/ - Deploy stage writes .env to repo root, not padelnomics/ subdir Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,9 +8,9 @@ test:
|
||||
before_script:
|
||||
- pip install uv
|
||||
script:
|
||||
- cd padelnomics && uv sync
|
||||
- uv run pytest tests/ -x -q
|
||||
- uv run ruff check src/ tests/
|
||||
- uv sync
|
||||
- uv run pytest web/tests/ -x -q
|
||||
- uv run ruff check web/src/ web/tests/
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "master"
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
@@ -30,7 +30,7 @@ deploy:
|
||||
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||
script:
|
||||
- |
|
||||
ssh "$DEPLOY_USER@$DEPLOY_HOST" "cat > /opt/padelnomics/padelnomics/.env" << ENVEOF
|
||||
ssh "$DEPLOY_USER@$DEPLOY_HOST" "cat > /opt/padelnomics/.env" << ENVEOF
|
||||
APP_NAME=$APP_NAME
|
||||
SECRET_KEY=$SECRET_KEY
|
||||
BASE_URL=$BASE_URL
|
||||
@@ -56,5 +56,5 @@ deploy:
|
||||
LITESTREAM_R2_SECRET_ACCESS_KEY=$LITESTREAM_R2_SECRET_ACCESS_KEY
|
||||
LITESTREAM_R2_ENDPOINT=$LITESTREAM_R2_ENDPOINT
|
||||
ENVEOF
|
||||
- ssh "$DEPLOY_USER@$DEPLOY_HOST" "chmod 600 /opt/padelnomics/padelnomics/.env"
|
||||
- ssh "$DEPLOY_USER@$DEPLOY_HOST" "chmod 600 /opt/padelnomics/.env"
|
||||
- ssh "$DEPLOY_USER@$DEPLOY_HOST" "cd /opt/padelnomics && git pull origin master && ./deploy.sh"
|
||||
|
||||
Reference in New Issue
Block a user