ci: set up CI/CD
This commit is contained in:
parent
4b8f584411
commit
705566e74f
1 changed files with 25 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
image: golang:1.12.6
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
#- release
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- make test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- make build
|
||||
artifacts:
|
||||
expire_in: 1 hour
|
||||
name: "pominal-$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- bin/pominal
|
||||
only:
|
||||
refs:
|
||||
- master
|
Loading…
Reference in a new issue