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

37 lines
693 B
YAML
Raw Normal View History

2022-04-08 03:02:20 +02:00
---
image: golang:1.18
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
stage: deploy
script:
- make .changes
- python package/release.py
only:
- tags