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
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
# Шаблон: Node.js 22 + кэш node_modules
|
# Шаблон: установка зависимостей + кэш (shell executor, Node.js на VPS)
|
||||||
.node_setup:
|
.node_setup:
|
||||||
image: node:22-alpine
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm ci --prefer-offline
|
- npm ci --prefer-offline
|
||||||
cache:
|
cache:
|
||||||
@ -38,11 +37,9 @@ build:
|
|||||||
# Deploy — только при push в main
|
# Deploy — только при push в main
|
||||||
deploy_production:
|
deploy_production:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: node:22-alpine
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache openssh-client
|
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user