mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
update
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
.git
|
||||||
|
.git/**
|
||||||
|
.dockerignore
|
||||||
|
*.yml
|
||||||
|
*.md
|
||||||
|
.gitignore
|
||||||
|
Dockerfile
|
||||||
|
vendor
|
||||||
|
vendor/**
|
||||||
|
*.go
|
||||||
|
*.sh
|
||||||
|
setting
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.4
|
||||||
|
- 1.5
|
||||||
|
- 1.6
|
||||||
|
- 1.7
|
||||||
|
|
||||||
|
go_import_path:
|
||||||
|
|
||||||
+2
-7
@@ -4,12 +4,7 @@ MAINTAINER deepzz <deepzz.qi@gmail.com>
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y ca-certificates
|
RUN apt-get install -y ca-certificates
|
||||||
|
|
||||||
ADD conf /eiblog/conf
|
COPY . /eiblog
|
||||||
ADD static /eiblog/static
|
|
||||||
ADD views /eiblog/views
|
|
||||||
ADD eiblog /eiblog/eiblog
|
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
WORKDIR /eiblog
|
WORKDIR /eiblog
|
||||||
ENTRYPOINT ["./eiblog"]
|
ENTRYPOINT ["./eiblog"]
|
||||||
|
|||||||
+1
-9
@@ -1,18 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "go build..."
|
echo "go build..."
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build && \
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build && \
|
||||||
mkdir tmp && \
|
|
||||||
cp -a conf tmp/conf && \
|
|
||||||
cp -a static tmp/static && \
|
|
||||||
cp -a views tmp/views && \
|
|
||||||
cp eiblog tmp/eiblog && \
|
|
||||||
cp Dockerfile tmp/Dockerfile && \
|
|
||||||
cd tmp && \
|
|
||||||
domain="registry.cn-hangzhou.aliyuncs.com" && \
|
domain="registry.cn-hangzhou.aliyuncs.com" && \
|
||||||
docker build -t $domain/deepzz/eiblog . && \
|
docker build -t $domain/deepzz/eiblog . && \
|
||||||
read -p "是否上传到服务器(y/n):" word && \
|
read -p "是否上传到服务器(y/n):" word && \
|
||||||
if [ $word = "y" ] ;then
|
if [ $word = "y" ] ;then
|
||||||
docker push $domain/deepzz/eiblog
|
docker push $domain/deepzz/eiblog
|
||||||
fi
|
fi
|
||||||
cd ..
|
|
||||||
rm -rf tmp
|
|
||||||
Reference in New Issue
Block a user