2018-03-12 19:31:14 +00:00
|
|
|
|
2019-01-14 23:01:54 +00:00
|
|
|
image: node:10.15.0
|
2018-03-12 19:31:14 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
script:
|
2018-03-15 01:28:52 +00:00
|
|
|
- npm install
|
2018-03-15 02:04:19 +00:00
|
|
|
- npm install gulp -g
|
2018-03-12 19:31:14 +00:00
|
|
|
- gulp build --cwd ./themes/starter
|
2018-03-15 02:04:19 +00:00
|
|
|
- ./node_modules/hexo/bin/hexo generate
|
2018-03-12 19:31:14 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2018-03-15 02:06:18 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
key: project
|
|
|
|
|
2018-03-12 19:31:14 +00:00
|
|
|
only:
|
|
|
|
- master
|
2018-10-17 20:27:04 +00:00
|
|
|
|
|
|
|
cert-renewal:
|
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
CERTBOT_RENEWAL_GIT_TOKEN: $CERTBOT_RENEWAL_GIT_TOKEN
|
|
|
|
script:
|
|
|
|
- echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install certbot -t jessie-backports -y
|
|
|
|
- apt-get install git curl -y
|
|
|
|
- export PATH=$PATH:$CI_PROJECT_DIR
|
|
|
|
- git config --global user.name $GITLAB_USER_LOGIN
|
|
|
|
- git config --global user.email $GITLAB_USER_EMAIL
|
|
|
|
- chmod +x ./letsencrypt_generate.sh
|
|
|
|
- chmod +x ./letsencrypt_authenticator.sh
|
2019-01-14 23:01:54 +00:00
|
|
|
- chmod +x ./letsencrypt_cleanup.sh
|
2018-10-17 20:27:04 +00:00
|
|
|
- ./letsencrypt_generate.sh
|