This commit is contained in:
parent
2171d0d238
commit
58908e29de
31
.drone.yml
Normal file
31
.drone.yml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: fetch
|
||||
image: docker:git
|
||||
commands:
|
||||
- git fetch --tags
|
||||
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: quay.io/xsteadfastx/govanityurls
|
||||
registry: quay.io
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM golang:alpine AS build
|
||||
|
||||
WORKDIR /go/src/app
|
||||
COPY . .
|
||||
|
||||
RUN set -ex \
|
||||
&& CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"'
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /go/bin/govanityurls /govanityurls
|
||||
|
||||
ENTRYPOINT ["/govanityurls"]
|
Loading…
Reference in New Issue
Block a user