mirror of https://github.com/dirtbags/moth.git
CI/CD
This commit is contained in:
parent
d9299f5e59
commit
a585afdd8d
|
@ -0,0 +1,21 @@
|
|||
stages:
|
||||
- test
|
||||
- push
|
||||
|
||||
test:
|
||||
image: golang:1.17
|
||||
only:
|
||||
refs:
|
||||
- main
|
||||
- merge_requests
|
||||
stage: test
|
||||
script:
|
||||
- go test ./...
|
||||
|
||||
push:
|
||||
stage: push
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
script:
|
||||
- ./ci.sh push
|
Loading…
Reference in New Issue