mirror of
https://gitea.com/jolheiser/sip
synced 2024-11-26 07:33:48 +01:00
bb773780df
Fix CI test Fix origin names in PR create Add aliases for new issue/PR and fix issues search Update beaver and squash some bugs Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/jolheiser/sip/pulls/6
73 lines
1.1 KiB
YAML
73 lines
1.1 KiB
YAML
---
|
|
kind: pipeline
|
|
name: compliance
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
trigger:
|
|
event:
|
|
- pull_request
|
|
|
|
steps:
|
|
- name: build
|
|
pull: always
|
|
image: golang:1.13
|
|
environment:
|
|
GOPROXY: https://goproxy.cn
|
|
commands:
|
|
- make test
|
|
- go build
|
|
|
|
- name: check
|
|
pull: always
|
|
image: golang:1.13
|
|
environment:
|
|
GOPROXY: https://goproxy.cn
|
|
commands:
|
|
- make lint
|
|
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
steps:
|
|
- name: fetch-tags
|
|
pull: always
|
|
image: docker:git
|
|
commands:
|
|
- git fetch --tags --force
|
|
|
|
- name: release
|
|
pull: always
|
|
image: techknowlogick/xgo:latest
|
|
environment:
|
|
GOPROXY: https://goproxy.cn
|
|
commands:
|
|
- export PATH=$PATH:$GOPATH/bin
|
|
- make release
|
|
|
|
- name: gitea
|
|
pull: always
|
|
image: plugins/gitea-release:1
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_token
|
|
base_url: https://gitea.com
|
|
files:
|
|
- "dist/release/*"
|
|
when:
|
|
event:
|
|
- tag |