Commit c2a1a01c authored by Dennis Willers's avatar Dennis Willers 🏀

Init Gitlab-Ci.yml

parent d5b19664
Pipeline #262 failed with stages
in 4 minutes and 28 seconds
build:
stage: build
image: trion/ng-cli
before_script:
- npm i
- npm ci
script:
- ng build --subresource-integrity --prod
artifacts:
expire_in: 1 day
paths:
- dist/
tags:
- docker
deploy-master:
stage: deploy
image: tetraweb/php:7.1
before_script:
- "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )"
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add <(echo "$STAGING_PRIVATE_KEY")
script:
- ssh root@willers.digital -p 2233 "mkdir -p /volume1/web/_tmp"
- ssh root@willers.digital -p 2233 "mkdir -p /volume1/web/alt"
- scp -P2233 -r dist/tabu/* root@willers.digital:/volume1/web/_tmp
- ssh -p 2233 root@willers.digital "mv /volume1/web/tabu/* /volume1/web/alt && mv /volume1/web/_tmp/* /volume1/web/tabu"
- ssh -p 2233 root@willers.digital "rm -rf /volume1/web/alt"
only:
- master
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