fail2ban-prometheus-exporter/.gitlab-ci.yml
Hector 1ac9f5a551 ci: remove dependency step from ci/cd pipeline
Remove the dependency check step to avoid breaking builds.
2021-03-27 17:19:45 +00:00

49 lines
786 B
YAML

image: golang:latest
before_script:
- make install-deps
stages:
- test
- build
format:
stage: test
script:
- make format
test:
stage: test
script:
- make test
build:
stage: build
only:
- main
- tags
script:
- git fetch --tags
- make build/snapshot
artifacts:
paths:
- dist/*.tar.gz
- dist/checksums.txt
expire_in: 1 day
docker-gitlab:
stage: build
only:
- main
- tags
image: docker:stable
services:
- docker:dind
before_script:
- apk add git
- apk add make
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- make docker/build-latest
- make docker/build-tag
- docker push registry.gitlab.com/hectorjsmith/fail2ban-prometheus-exporter