43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
|
clone:
|
||
|
git:
|
||
|
image: plugins/git
|
||
|
depth: 1
|
||
|
tags: true
|
||
|
pipeline:
|
||
|
trigger_gendoc:
|
||
|
image: plugins/downstream
|
||
|
server: https://drone.finogeeks.club
|
||
|
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoiZGVuZ3hpYW5nY3VuIiwidHlwZSI6InVzZXIifQ.EGTC2GELMYGkWBt5Zot-OdUYHfhzsrHFSYxLb-ortNo
|
||
|
fork: true
|
||
|
repositories:
|
||
|
- finochat/doc
|
||
|
when:
|
||
|
status: [success]
|
||
|
event: [tag]
|
||
|
build:
|
||
|
image: docker.finogeeks.club/base/golang-alpine:1.13.0
|
||
|
commands:
|
||
|
- export GOPATH=/go
|
||
|
- export CGO_ENABLED=0
|
||
|
- export GOPROXY=https://goproxy.io
|
||
|
- go build -v -mod=vendor
|
||
|
# - export GOPRIVATE=git.finogeeks.club
|
||
|
# - sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||
|
# - apk add git
|
||
|
# - export GOPROXY=https://admin:1cd4b890-3dbf-4a1e-a42b-098d4046c0d3@go-nexus.finogeeks.club/repository/go-group/
|
||
|
# - go build -v
|
||
|
docker_latest:
|
||
|
image: docker.finogeeks.club/drone/docker
|
||
|
repo: docker.finogeeks.club/finstore/mop-middleware-auth
|
||
|
dockerfile: Dockerfile
|
||
|
when:
|
||
|
branch: master
|
||
|
event: [push, pull_request]
|
||
|
docker_tag:
|
||
|
image: docker.finogeeks.club/drone/docker
|
||
|
repo: docker.finogeeks.club/finstore/mop-middleware-auth
|
||
|
dockerfile: Dockerfile
|
||
|
default_tags: true
|
||
|
when:
|
||
|
branch: master
|
||
|
event: [tag]
|