Compare commits

..

No commits in common. "master" and "1.0" have entirely different histories.
master ... 1.0

3 changed files with 21 additions and 47 deletions

View File

@ -2,40 +2,23 @@ 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
environment: commands:
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 - name: gitea_release
- apk update && apk add build-base image: plugins/gitea-release
- CGO_ENABLED=1 go build pull: if-not-exists
settings:
- name: gitea_release api_key:
image: plugins/gitea-release from_secret: gitea_token
pull: if-not-exists base_url: https://git.rainss.cn
settings: files:
api_key: - main
from_secret: gitea_token checksum:
base_url: https://git.rainss.cn - md5
files: - sha256
- main when:
checksum: event: tag
- sha256
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

@ -36,4 +36,3 @@ changelog:
exclude: exclude:
- '^docs:' - '^docs:'
- '^test:' - '^test:'

View File

@ -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" ]