-
Notifications
You must be signed in to change notification settings - Fork 28
/
.gitlab-ci.yml
32 lines (27 loc) · 1.13 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
stages:
- deploy-pdev
before_script:
- git config --global core.longpaths true
- $SSH_URL=echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#ssh://git@\1:#'|sed 's#com:#com:8888/#'
deploy:
stage: deploy-pdev
# variables:
# CI_DEBUG_TRACE: "true"
only:
- deploy-pdev
script:
- gulp ci
- $SSH_URL
# - git config --global user.name "$env:GITLAB_USER_ID"
# - git config --global user.email "$env:GITLAB_USER_EMAIL"
# - git checkout master
# - git pull
# - git add .\bin\.
# - git commit -m "[ci skip]auto add bin\* with job $env:CI_JOB_ID"
# - git push $SSH_URL
- $DIR=C:\cygwin64\bin\ls.exe dist; $DIR
- ssh [email protected] "! [[ $(dirname /data/www/fg/gamelist/public/global/list/fish/) == $(dirname /data/www/fg/gamelist/public/global/list/fish/$DIR/) ]] && rm -rf /data/www/fg/gamelist/public/global/list/fish/$DIR || exit 1"
- scp -r dist/$DIR [email protected]:/data/www/fg/gamelist/public/global/list/fish/
- ssh [email protected] "chmod -R 775 /data/www/fg/gamelist/public/global/list/fish/$DIR && ls /data/www/fg/gamelist/public/global/list/fish/"
tags:
- windows