This commit is contained in:
parent
5b685c88b4
commit
25a86eef4a
31
.drone.yml
Normal file
31
.drone.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: binary build
|
||||||
|
image: golang
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
commands:
|
||||||
|
- go vet
|
||||||
|
- go build
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: git.burble.dn42
|
||||||
|
repo: git.burble.dn42/burble.dn42/whois42d
|
||||||
|
tags: latest
|
||||||
|
username: burble
|
||||||
|
password:
|
||||||
|
from_secret: TOKEN
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: TOKEN
|
||||||
|
get:
|
||||||
|
path: burble.dn42/kv/data/drone/git.burble.dn42
|
||||||
|
name: artifact-token
|
||||||
|
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
###########################################################################
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
MAINTAINER burble <simon@burble.com>
|
||||||
|
VOLUME /registry
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ADD whois /usr/local/bin/whois42d
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER 1000
|
||||||
|
EXPOSE 8043
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/usr/local/bin/whois42d", "-port", "8043" ]
|
||||||
|
CMD [ "-registry", "/registry" ]
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# end of file
|
Loading…
x
Reference in New Issue
Block a user