forked from nutomic/joinpeertube
Prepare deploy
This commit is contained in:
parent
c6ea6de379
commit
92a8b1a6d4
1 changed files with 24 additions and 33 deletions
|
@ -1,14 +1,7 @@
|
||||||
image: framasoft/vuefs:latest
|
image: framasoft/vuefs:latest
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npm install -g yaml-lint
|
|
||||||
- for f in $(find ./app/ -name "*.yml" -type f);do yamllint $f;done;
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
@ -22,25 +15,23 @@ pages:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
|
||||||
#production:
|
production:
|
||||||
#stage: deploy
|
stage: deploy
|
||||||
#script:
|
script:
|
||||||
#- npm install
|
- yarn install --pure-lockfile
|
||||||
#- npm run prod
|
- npm run build
|
||||||
#- cp ./public/fr/index.html ./public/index.html
|
- rm -r public/ && mv dist/ public/
|
||||||
#- for f in $(find -type l);do cp --remove-destination $(readlink -f $f) $f;done;
|
- mkdir "${HOME}/.ssh"
|
||||||
#- mkdir "${HOME}/.ssh"
|
- chmod 700 "${HOME}/.ssh"
|
||||||
#- chmod 700 "${HOME}/.ssh"
|
- echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts;
|
||||||
#- echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts;
|
- eval `ssh-agent -s`
|
||||||
#- eval `ssh-agent -s`
|
- ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i);
|
||||||
#- ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i);
|
- cd public && echo "put -r ." | sftp ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web;
|
||||||
#- cd public && echo "put -r ." | sftp ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web;
|
only:
|
||||||
#only:
|
refs:
|
||||||
#refs:
|
- master
|
||||||
#- master
|
variables:
|
||||||
#variables:
|
- $DEPLOYEMENT_KEY
|
||||||
#- $DEPLOYEMENT_KEY
|
- $DEPLOYEMENT_KNOWN_HOSTS
|
||||||
#- $DEPLOYEMENT_KNOWN_HOSTS
|
- $DEPLOYEMENT_USER
|
||||||
#- $DEPLOYEMENT_USER
|
- $DEPLOYEMENT_HOST
|
||||||
#- $DEPLOYEMENT_HOST
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue