36 lines
557 B
YAML
36 lines
557 B
YAML
pipeline:
|
|
tags:
|
|
image: alpine/git
|
|
commands:
|
|
- git fetch --tags
|
|
submodules:
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule init
|
|
- git submodule update
|
|
when:
|
|
event:
|
|
- tag
|
|
lint:
|
|
image: golang:1.17
|
|
commands:
|
|
- make lint
|
|
test:
|
|
image: golang:1.17
|
|
commands:
|
|
- make test
|
|
build:
|
|
image: golang:1.17
|
|
commands:
|
|
- make build
|
|
release:
|
|
image: golang:1.17
|
|
commands:
|
|
- git checkout -- .
|
|
- make release
|
|
secrets:
|
|
- github_token
|
|
when:
|
|
event:
|
|
- tag
|