2020-12-23 15:47:36 +08:00
|
|
|
---
|
|
|
|
|
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
|
|
|
|
|
|
2020-12-23 15:55:33 +08:00
|
|
|
steps:
|
2020-12-23 15:47:36 +08:00
|
|
|
- name: build
|
2020-12-29 15:17:47 +08:00
|
|
|
image: reg.int.it2000.com.cn/library/golang-cross:1.15.6-buster
|
2020-12-23 15:54:13 +08:00
|
|
|
volumes:
|
|
|
|
|
- name: deps
|
|
|
|
|
path: /go
|
|
|
|
|
environment:
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
GOPROXY: https://goproxy.io
|
|
|
|
|
commands:
|
2020-12-29 15:21:59 +08:00
|
|
|
- OOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o tele-recv-linux
|
2020-12-29 14:45:13 +08:00
|
|
|
- GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -o tele-recv-win64.exe
|
2020-12-29 16:34:20 +08:00
|
|
|
- tar cvzf tele-recv-0.0.7.tar.gz tele-recv-linux tele-recv-win64.exe telegram.yaml
|
2020-12-23 16:16:28 +08:00
|
|
|
|
|
|
|
|
- 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
|
2020-12-29 16:34:20 +08:00
|
|
|
title: 0.0.7
|
2020-12-23 16:16:28 +08:00
|
|
|
files:
|
2020-12-29 16:34:20 +08:00
|
|
|
- tele-recv-0.0.7.tar.gz
|
2020-12-23 16:16:28 +08:00
|
|
|
checksum:
|
|
|
|
|
- sha256
|
|
|
|
|
when:
|
|
|
|
|
event: tag
|
2020-12-23 15:47:36 +08:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: deps
|
|
|
|
|
host:
|
|
|
|
|
path: /opt/go
|
|
|
|
|
- name: certs
|
|
|
|
|
host:
|
|
|
|
|
path: /etc/ssl/certs
|
|
|
|
|
- name: docker
|
|
|
|
|
host:
|
2020-12-29 13:00:59 +08:00
|
|
|
path: /var/run/docker.sock
|