1
0
mirror of https://git.feneas.org/feneas/fediverse.git synced 2024-12-23 03:28:34 +01:00
guida-fediverso/.gitlab-ci.yml
2018-11-09 21:15:09 +03:00

38 lines
967 B
YAML

image: node:8.12
pages:
script:
- npm install
- npm install gulp -g
- gulp build --cwd ./themes/starter
- ./node_modules/hexo/bin/hexo generate
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep {} \;
artifacts:
paths:
- public
cache:
paths:
- node_modules
key: project
only:
- master
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
- ./letsencrypt_generate.sh