ci: switch to shell executor for GitLab Runner
Remove Docker image references since runner uses shell executor with Node.js installed directly on VPS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4850fa77ef
commit
9960f0cc78
@ -3,9 +3,8 @@ stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
# Шаблон: Node.js 22 + кэш node_modules
|
||||
# Шаблон: установка зависимостей + кэш (shell executor, Node.js на VPS)
|
||||
.node_setup:
|
||||
image: node:22-alpine
|
||||
before_script:
|
||||
- npm ci --prefer-offline
|
||||
cache:
|
||||
@ -38,11 +37,9 @@ build:
|
||||
# Deploy — только при push в main
|
||||
deploy_production:
|
||||
stage: deploy
|
||||
image: node:22-alpine
|
||||
dependencies:
|
||||
- build
|
||||
before_script:
|
||||
- apk add --no-cache openssh-client
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
|
||||
Loading…
Reference in New Issue
Block a user