-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (34 loc) · 912 Bytes
/
.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
33
34
35
36
stages:
- build
- deploy
build:
stage: build
image: monachus/hugo
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- hugo
artifacts:
paths:
- public
only:
- master
deploy:
stage: deploy
# image: node:latest
cache:
paths:
- node_modules/
script:
# - npm install -g firebase-tools
- firebase use --token ${FIREBASE_TOKEN} scroll-of-pluser
- firebase deploy -m "Pipeline ${CI_PIPELINE_ID}, build ${CI_BUILD_ID}" --non-interactive --token ${FIREBASE_TOKEN}
- curl http://www.google.com/ping?sitemap=https://blog.pluser.net/sitemap.xml
# - echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
# - gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
# - gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
environment:
name: production
url: https://blog.pluser.net
only:
- master