Initial CI
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
0ad912fab4
commit
25fa08c6dd
|
@ -0,0 +1,56 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: control
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: build/control/Dockerfile
|
||||
registry: registry.makerforce.io
|
||||
repo: registry.makerforce.io/photos/control
|
||||
tags:
|
||||
- latest
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: preview
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: build/proxy/Dockerfile
|
||||
registry: registry.makerforce.io
|
||||
repo: registry.makerforce.io/photos/preview
|
||||
tags:
|
||||
- latest
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: proxy
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: build/proxy/Dockerfile
|
||||
registry: registry.makerforce.io
|
||||
repo: registry.makerforce.io/photos/proxy
|
||||
tags:
|
||||
- latest
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
FROM golang:latest AS build
|
||||
|
||||
RUN mkdir /src /dist
|
||||
|
||||
WORKDIR /src
|
||||
COPY . ./
|
||||
|
||||
WORKDIR /src/cmd/proxy/
|
||||
ENV CGO_ENABLED=0
|
||||
RUN go build -o /dist/proxy
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /dist/proxy /proxy
|
||||
|
||||
ENTRYPOINT ["/proxy"]
|
Loading…
Reference in New Issue