mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
update
This commit is contained in:
24
.travis.yml
24
.travis.yml
@@ -1,24 +1,30 @@
|
|||||||
sudo: required
|
sudo: required # 声明构建语言环境
|
||||||
dist: trusty
|
dist: trusty # 在ubuntu:trusty
|
||||||
|
notifications: # 每次构建的时候是否通知,如果不想收到通知邮箱(个人感觉邮件贼烦),那就设置false吧
|
||||||
|
email: false
|
||||||
|
|
||||||
language: go
|
language: go # 声明构建语言环境
|
||||||
|
|
||||||
go:
|
go: # 只构建最新版本
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
service:
|
service: # docker环境
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
branches: # 限定项目分支
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- curl https://glide.sh/get | sh
|
- curl https://glide.sh/get | sh # 安装glide包管理
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- glide up
|
- glide up
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build # 编译版本
|
||||||
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog .
|
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog . # 构建镜像
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$TRAVIS_BRANCH" == "master" ]; then
|
- if [ "$TRAVIS_BRANCH" == "master" ]; then # push到镜像仓库
|
||||||
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com;
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com;
|
||||||
docker push registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog;
|
docker push registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog;
|
||||||
fi
|
fi
|
||||||
@@ -1 +1 @@
|
|||||||
# EiBlog
|
# EiBlog [](https://travis-ci.org/eiblog/eiblog)
|
||||||
@@ -18,8 +18,8 @@ identifier: <!-- more -->
|
|||||||
favicon: //st.deepzz.com/static/img/favicon.ico
|
favicon: //st.deepzz.com/static/img/favicon.ico
|
||||||
# 起始ID,预留id不时之需, 不用管
|
# 起始ID,预留id不时之需, 不用管
|
||||||
startid: 11
|
startid: 11
|
||||||
# 静态文件地址, 后台js,css在用, cdn: //domain.com
|
# cdn: //domain.com
|
||||||
static: //deepzz.com
|
static: //st.deepzz.com
|
||||||
# elasticsearch url
|
# elasticsearch url
|
||||||
searchurl: http://elasticsearch:9200
|
searchurl: http://elasticsearch:9200
|
||||||
# 评论相关
|
# 评论相关
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
{{define "ana_js"}}
|
{{define "ana_js"}}
|
||||||
! function(e, n, o, t) {
|
! function(e, n, o, t) {var a = e.screen,r = encodeURIComponent,i = ["tid=UA-77251712-1", "dl=" + r(n.URL), "dt=" + r(n.title), "dr=" + r(n.referrer), "dp=" + r(t.pathname), "ul=" + (o.language || o.browserLanguage).toLowerCase(), "sd=" + a.colorDepth + "-bit", "sr=" + a.width + "x" + a.height, "_=" + +new Date],c = "?" + i.join("&");e.__beacon_img = new Image, e.__beacon_img.src = "/beacon.html" + c }(window, document, navigator, location);
|
||||||
var a = e.screen,
|
|
||||||
r = encodeURIComponent,
|
|
||||||
i = ["tid=UA-77251712-1", "dl=" + r(n.URL), "dt=" + r(n.title), "dr=" + r(n.referrer), "dp=" + r(t.pathname), "ul=" + (o.language || o.browserLanguage).toLowerCase(), "sd=" + a.colorDepth + "-bit", "sr=" + a.width + "x" + a.height, "_=" + +new Date],
|
|
||||||
c = "?" + i.join("&");
|
|
||||||
e.__beacon_img = new Image, e.__beacon_img.src = "/beacon.html" + c }(window, document, navigator, location);
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user