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

Merge branch 'master' of gitplac.nat:aljaxus/net-skinsrestorer

parents 348e210e dfa5c6d2
image: node:12
stages:
- build
- deploy
build:
image: node:12
stage: build
tags:
- kubernetes
script:
- yarn
- yarn run build
artifacts:
expire_in: 1 week
paths:
- dist
deploy:
image: alpine
stage: deploy
tags:
- docker
- deploy
script:
- apk add --no-cache rsync openssh
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv ./dist/* $SSH_USER@$SSH_HOST:$SSH_FOLDER
\ No newline at end of file
include:
- https://gitplac.si/aljaxus/ci-templates/-/raw/master/nodejs/vuejs/build/docker.yml
- https://gitplac.si/aljaxus/ci-templates/-/raw/master/deploy/rsync/docker.yml
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