This commit is contained in:
parent
6c9a44f3db
commit
80b18c450d
27
.drone.yml
Normal file
27
.drone.yml
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o chunkvalidator
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nemunaire/chunkvalidator
|
||||
tags: latest
|
||||
when:
|
||||
branch:
|
||||
- master
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM golang:alpine as gobuild
|
||||
|
||||
|
||||
WORKDIR /go/src/git.nemunai.re/chunkvalidator
|
||||
|
||||
|
||||
COPY *.go go.mod go.sum ./
|
||||
|
||||
RUN go get -d -v && \
|
||||
go build -v
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["chunkvalidator"]
|
||||
|
||||
COPY --from=gobuild /go/src/git.nemunai.re/chunkvalidator/chunkvalidator /usr/sbin/chunkvalidator
|
Reference in New Issue
Block a user