Build with drone

This commit is contained in:
2020-08-09 23:10:46 -07:00
parent a801484c28
commit 8f9d9ad6fe

32
.drone.yml Normal file
View File

@@ -0,0 +1,32 @@
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: golang:1.14.7
volumes:
- name: deps
path: /go
commands:
- go test -v
- go build
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:0.8.0-1
pull: always
volumes:
- name: deps
path: /go
settings:
repo: ntppool/geoipapi
registry: harbor.ntppool.org
auto_tag: true
tags: SHA7,${DRONE_SOURCE_BRANCH}
cache: true
docker_config:
from_secret: quay
username:
from_secret: harbor_username
password:
from_secret: harbor_password