Compare commits
No commits in common. "master" and "1.0" have entirely different histories.
21
.drone.yml
21
.drone.yml
@ -5,13 +5,9 @@ steps:
|
|||||||
- name: gobuild
|
- name: gobuild
|
||||||
image: golang:alpine
|
image: golang:alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
|
||||||
GOPROXY: https://goproxy.cn
|
|
||||||
commands:
|
commands:
|
||||||
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
||||||
- apk update && apk add build-base
|
- apk update && apk add build-base
|
||||||
- CGO_ENABLED=1 go build
|
- GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
@ -22,20 +18,7 @@ steps:
|
|||||||
files:
|
files:
|
||||||
- main
|
- main
|
||||||
checksum:
|
checksum:
|
||||||
|
- md5
|
||||||
- sha256
|
- sha256
|
||||||
when:
|
when:
|
||||||
event: tag
|
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
|
|
||||||
@ -36,4 +36,3 @@ changelog:
|
|||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- '^docs:'
|
||||||
- '^test:'
|
- '^test:'
|
||||||
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
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" ]
|
|
||||||
Loading…
Reference in New Issue
Block a user