prometheus-dnssec-exporter/.gitlab-ci.yml
2022-10-14 02:02:08 +02:00

36 lines
693 B
YAML

---
image: golang:1.18
before_script:
- export PDE_FULL_VERSION=$(git describe --tags --dirty | sed -re s/^v//)
- export PDE_VERSION=$(echo $PDE_FULL_VERSION | cut -d- -f1)
- export PDE_REVISION=$(echo $PDE_FULL_VERSION | cut -d- -f2-)
- go get -v
stages:
- test
- build
- release
compile:
stage: test
script:
- make prometheus-dnssec-exporter
artifacts:
paths:
- prometheus-dnssec-exporter
golangci-lint:
stage: test
script:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
- golangci-lint run
release:
image: debian:bullseye
stage: deploy
script:
- make .changes
- python package/release.py
only:
- tags