Delete old Gitlab file
This commit is contained in:
parent
a3081d66f0
commit
0568fd22d5
|
@ -1,34 +0,0 @@
|
|||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
ZOLA_VERSION: "v0.14.0"
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- curl -L https://github.com/getzola/zola/releases/download/$ZOLA_VERSION/zola-$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz > zola.tar.gz
|
||||
- tar -xzf zola.tar.gz
|
||||
- ./zola build
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
||||
deploy:
|
||||
image: alpine:latest
|
||||
stage: deploy
|
||||
script:
|
||||
- apk add openssh sshpass
|
||||
- "sshpass -p $DEPLOY_SSH_PASS ssh -oStrictHostKeyChecking=no $DEPLOY_SSH_USER@$DEPLOY_SSH_HOST 'rm -rf /var/customers/webs/timvisee/timvisee.com/old; mkdir -p /var/customers/webs/timvisee/timvisee.com/new'"
|
||||
- "sshpass -p $DEPLOY_SSH_PASS scp -oStrictHostKeyChecking=no -r public/* $DEPLOY_SSH_USER@$DEPLOY_SSH_HOST:/var/customers/webs/timvisee/timvisee.com/new/"
|
||||
- "sshpass -p $DEPLOY_SSH_PASS ssh -oStrictHostKeyChecking=no $DEPLOY_SSH_USER@$DEPLOY_SSH_HOST 'mv /var/customers/webs/timvisee/timvisee.com/live /var/customers/webs/timvisee/timvisee.com/old; mv /var/customers/webs/timvisee/timvisee.com/new /var/customers/webs/timvisee/timvisee.com/live; rm -rf /var/customers/webs/timvisee/timvisee.com/old'"
|
||||
- "echo Site is now deployed and live at https://timvisee.com/"
|
||||
dependencies:
|
||||
- build
|
||||
environment:
|
||||
name: production
|
||||
url: https://timvisee.com/
|
||||
only:
|
||||
- deploy
|
Loading…
Reference in New Issue