Moved to GitHub
https://github.com/tdemin/syg_go
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
448 B
28 lines
448 B
kind: pipeline |
|
name: build & release |
|
|
|
steps: |
|
- name: fetch tags |
|
image: docker:git |
|
commands: |
|
- git fetch --tags |
|
when: |
|
event: tag |
|
- name: test |
|
image: golang:1.14 |
|
commands: |
|
- go test -v . |
|
when: |
|
event: |
|
exclude: |
|
- tag |
|
- name: release |
|
image: golang:1.14 |
|
environment: |
|
GITEA_TOKEN: |
|
from_secret: goreleaser_gitea_token |
|
commands: |
|
- curl -sL https://git.io/goreleaser | bash |
|
when: |
|
event: tag |
|
|
|
|