Skip to content
Snippets Groups Projects
Commit 37b7f160 authored by Moritz Stückler's avatar Moritz Stückler :cowboy: Committed by Moritz Stückler
Browse files

feat: add gitlab ci pipeline

Feat/add automatic deployment

fix: branch in ci script

chore: add debug output to CI pipeline

fix: pipeline git strategy

fix: user/password escape for special chars

fix: revert string escape

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml

Update .gitlab-ci.yml
parent 50529d33
No related branches found
No related tags found
No related merge requests found
image: node:current-alpine3.13
stages:
- build
- deploy
before_script:
- apk update
- apk add --no-cache lftp openssh
- mkdir -p ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
npm build:
stage: build
only:
- main
script:
- npm ci
- npm run build
artifacts:
paths:
- build
lftp deploy:
stage: deploy
only:
- main
script:
- lftp -e "set net:timeout 5; set net:max-retries 3; set net:reconnect-interval-base 5; open sftp://$SFTP_HOST; user $SFTP_USER $SFTP_PASSWORD; mirror -X .* -X .*/ --reverse --verbose build/ live/; bye"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment