first version
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jay 2020-08-16 00:36:55 +08:00
commit a8fe9322ab
2 changed files with 24 additions and 0 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build docker image
image: plugins/docker
environment:
DOCKER_BUILDKIT: '1'
settings:
purge: true
repo: otakukaze/golang-base-image
tags:
- "${DRONE_BRANCH}"
when:
ref:
- refs/heads/1-alpine

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
ARG IMG_TAG=1-alpine
FROM golang:${IMG_TAG}
RUN apk add --no-cache git make gcc libc-dev \
&& go get -u github.com/go-bindata/go-bindata/... \
&& go get -u github.com/go-swagger/go-swagger/...