fail2ban-prometheus-exporter/.gitlab-ci.yml

35 lines
423 B
YAML
Raw Normal View History

2021-02-05 23:49:47 +01:00
image: golang:latest
before_script:
- make install-deps
stages:
- test
- build
2021-02-05 23:49:47 +01:00
format:
stage: test
script:
- make format
dependencies:
stage: test
script:
- make go-mod-tidy
test:
stage: test
script:
- make test
build:
stage: build
script:
- git fetch --tags
- make build/snapshot
artifacts:
paths:
- dist/*.tar.gz
- dist/checksums.txt
expire_in: 1 day