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

37 lines
694 B
YAML
Raw Normal View History

2022-04-08 03:02:20 +02:00
---
2022-10-14 02:19:41 +02:00
image: golang:1.19
2022-04-08 03:02:20 +02:00
before_script:
2022-10-14 02:02:08 +02:00
- 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-)
2022-04-08 03:02:20 +02:00
- go get -v
stages:
- test
2022-10-14 02:02:08 +02:00
- build
- release
2022-04-08 03:02:20 +02:00
compile:
stage: test
2022-04-08 03:02:20 +02:00
script:
2022-10-14 02:02:08 +02:00
- make prometheus-dnssec-exporter
artifacts:
paths:
- prometheus-dnssec-exporter
2022-04-08 03:02:20 +02:00
golangci-lint:
stage: test
script:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
- golangci-lint run
2022-10-14 02:02:08 +02:00
release:
image: debian:bullseye
2022-10-14 02:03:02 +02:00
stage: release
2022-10-14 02:02:08 +02:00
script:
- make .changes
- python package/release.py
only:
- tags