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

33 lines
479 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
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:35:45 +02:00
- go get -v
- make prometheus-dnssec-exporter .changes
2022-10-14 02:02:08 +02:00
artifacts:
paths:
- prometheus-dnssec-exporter
2022-10-14 02:35:45 +02:00
- .changes
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:
2022-10-14 02:46:03 +02:00
image: python:3.9
2022-10-14 02:03:02 +02:00
stage: release
2022-10-14 02:02:08 +02:00
script:
2022-10-14 02:46:03 +02:00
- python3 package/release.py
2022-10-14 02:02:08 +02:00
only:
- tags