Files
tele-recv/.drone.yml
T
2020-12-23 16:16:28 +08:00

52 lines
936 B
YAML

---
kind: pipeline
name: default
type: docker
platform:
os: linux
arch: amd64
clone:
image: reg.int.it2000.com.cn/devops/git
tags: true
skip_verify: true
steps:
- name: build
image: reg.int.it2000.com.cn/library/golang:1.15.6-buster
volumes:
- name: deps
path: /go
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
commands:
- go build -o tele-recv-linux
- name: release
image: plugins/gitea-release
volumes:
- name: certs
path: /etc/ssl/certs
settings:
api_key: fe1e1a8dd77de7452a3f473984c7ac6fe6c5abaf
base_url: https://gitea.int.it2000.com.cn
title: 0.0.1
files:
- tele-recv-linux
checksum:
- sha256
when:
event: tag
volumes:
- name: deps
host:
path: /opt/go
- name: certs
host:
path: /etc/ssl/certs
- name: docker
host:
path: /var/run/docker.sock