Commit af3c9633 authored by Aljaz S.'s avatar Aljaz S. 🚀
Browse files

added .gitlab-ci.yml

parent ad157955
image: node:12
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
stages:
- setup
- build
- deploy
setup:
image: node:12
stage: setup
tags:
- docker
script:
- yarn install --force
build:
image: node:12
stage: build
tags:
- docker
script:
- yarn run build
artifacts:
expire_in: 1 week
paths:
- dist
deploy:
image: alpine
stage: deploy
script:
- apk add --no-cache rsync openssh
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa
- chmod 600 ~/.ssh/id_dsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv ./dist/* aljaxus@node1.webonize/net:/home/aljaxus/domains/skinsrestorer.net/public_html/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment