diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9e5586d --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..745612d --- /dev/null +++ b/Dockerfile @@ -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" ] +