designtopack/.gitlab-ci.yml
2025-08-01 15:09:23 +02:00

28 lines
495 B
YAML

stages:
- build
- deploy
build:
stage: build
image: node:latest
script:
- npm install
- npm run build
artifacts:
paths:
- dist/
deploy:
stage: deploy
image: node:latest
only:
- main
before_script:
- apt-get update -qq && apt-get install -y rsync sshpass
script:
- |
sshpass -p "$PASSWORD" rsync -avz --delete \
-e "ssh -p 2244 -o StrictHostKeyChecking=no" \
dist/ $USERNAME@$HOST:$PROD_PATH
dependencies:
- build