mirror of https://github.com/dirtbags/moth.git
CI/CD
This commit is contained in:
parent
4dbeaac0bf
commit
ec9b2e2772
|
@ -3,17 +3,18 @@ stages:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
stage: test
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- main
|
- main
|
||||||
- merge_requests
|
- merge_requests
|
||||||
stage: test
|
|
||||||
script:
|
script:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
push:
|
push:
|
||||||
stage: push
|
stage: push
|
||||||
|
image: docker:20
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
|
Loading…
Reference in New Issue