Build with drone

This commit is contained in:
Ask Bjørn Hansen 2021-09-04 23:14:56 -07:00
parent f6fd07b159
commit 5c8fc2a3c5
2 changed files with 27 additions and 0 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
kind: pipeline
type: kubernetes
name: default
steps:
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:main
pull: always
settings:
dockerfile: Dockerfile
repo: library/prometheus-dnssec-exporter
registry: harbor.ntppool.org
auto_tag: true
tags: SHA7,${DRONE_SOURCE_BRANCH}
cache: true
username:
from_secret: harbor_library_username
password:
from_secret: harbor_library_password

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM golang:1.17-alpine
WORKDIR /app
COPY . ./
RUN go mod download
RUN go build -o /bin/prometheus-dnssec-exporter
ENTRYPOINT [ "/bin/prometheus-dnssec-exporter" ]