Compare commits

...

22 Commits
1.1 ... master

Author SHA1 Message Date
9f8327546c 更新 '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-01 15:34:39 +08:00
bf77ee8a6d 更新 '.goreleaser.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-31 00:42:57 +08:00
6d2e9ed8b8 更新 'drone/Dockerfile'
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-31 00:27:12 +08:00
2fe5faa2bf 更新 'drone/Dockerfile'
Some checks failed
continuous-integration/drone/push Build is failing
2021-07-31 00:22:50 +08:00
ed02e777c1 更新 'drone/Dockerfile'
Some checks failed
continuous-integration/drone/push Build is failing
2021-07-31 00:19:53 +08:00
8f92c031f4 更新 '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-30 12:37:29 +08:00
e189ee2d98 更新 '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-07-30 12:36:29 +08:00
4e841dfaac 添加 'drone/Dockerfile'
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-07-30 12:34:38 +08:00
df83e76d7f 更新 '.drone.yml'
Some checks failed
continuous-integration/drone/push Build is failing
2021-07-30 11:54:32 +08:00
9666147f36 更新 '.drone.yml' 2021-07-30 11:53:50 +08:00
64f5db14da 更新 '.drone.yml' 2021-07-30 11:53:19 +08:00
74859ac163 更新 '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-30 11:39:14 +08:00
25e586c07c 更新 '.drone.yml' 2021-07-30 11:38:48 +08:00
46bcf556f8 更新 '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-07-30 11:37:46 +08:00
69899afe3e 更新 '.drone.yml' 2021-07-30 11:34:51 +08:00
508059a8c2 更新 '.drone.yml' 2021-07-30 11:34:27 +08:00
c23a09663d 更新 '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-30 11:32:26 +08:00
8223afcadb 更新 '.drone.yml' 2021-07-30 11:27:40 +08:00
b15f2902ed 更新 '.drone.yml' 2021-07-30 11:27:06 +08:00
d4df8435ac 更新 '.drone.yml' 2021-07-30 11:26:51 +08:00
c139ab444d 更新 '.drone.yml' 2021-07-30 11:26:09 +08:00
e30df5f691 更新 '.drone.yml' 2021-07-30 11:24:45 +08:00
3 changed files with 47 additions and 23 deletions

View File

@ -2,25 +2,40 @@ kind: pipeline
type: docker type: docker
name: E5SubBotForSQLite name: E5SubBotForSQLite
steps: steps:
- name: gobuild - name: gobuild
image: golang:alpine image: golang:alpine
pull: if-not-exists pull: if-not-exists
commands: environment:
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories GOPROXY: https://goproxy.cn
- apk update && apk add build-base commands:
- GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
- ls -lh - apk update && apk add build-base
- name: gitea_release - CGO_ENABLED=1 go build
image: plugins/gitea-release
pull: if-not-exists - name: gitea_release
settings: image: plugins/gitea-release
api_key: pull: if-not-exists
from_secret: gitea_token settings:
base_url: https://git.rainss.cn api_key:
files: from_secret: gitea_token
- main base_url: https://git.rainss.cn
checksum: files:
- md5 - main
- sha256 checksum:
when: - sha256
event: tag when:
event: tag
- name: publish
image: plugins/docker:latest
pull: if-not-exists
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo: rainerosion/e5subbot
tags: latest
build_args:
- E5SubBotFile=./main
dockerfile: drone/Dockerfile

View File

@ -35,4 +35,5 @@ changelog:
filters: filters:
exclude: exclude:
- '^docs:' - '^docs:'
- '^test:' - '^test:'

8
drone/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine:latest
ARG E5SubBotFile
ENV TIME_ZONE=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update && apk add tzdata \
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
WORKDIR /root
ADD ${E5SubBotFile} /root/
CMD [ "/root/main" ]