Build with drone
This commit is contained in:
parent
f6fd07b159
commit
5c8fc2a3c5
19
.drone.yml
Normal file
19
.drone.yml
Normal 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
8
Dockerfile
Normal 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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user