This commit is contained in:
parent
0e9c975e45
commit
6c86be1aba
|
@ -8,9 +8,12 @@ workspace:
|
||||||
steps:
|
steps:
|
||||||
- name: testing
|
- name: testing
|
||||||
image: golang:1.12-alpine
|
image: golang:1.12-alpine
|
||||||
|
environment:
|
||||||
|
GOPATH: /go
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- export GOPATH=/go
|
|
||||||
- export CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
|
||||||
- apk --no-cache add git
|
- apk --no-cache add git
|
||||||
- go get -d -t ./...
|
- go get -d -t ./...
|
||||||
- go build ./...
|
- go build ./...
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM alpine
|
FROM alpine:3.7
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
WORKDIR /opt/micropub
|
WORKDIR /opt/micropub
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY ./eksterd /app/
|
COPY ./bin/eksterd /app/
|
||||||
COPY ./templates /app/templates
|
COPY ./templates /app/templates
|
||||||
ENTRYPOINT ["/app/eksterd"]
|
ENTRYPOINT ["/app/eksterd"]
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM golang:1.10.2-alpine3.7 AS build-env
|
FROM golang:1.12.0-alpine3.7 AS build-env
|
||||||
RUN apk --no-cache add git
|
RUN apk --no-cache add git
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
RUN go get p83.nl/go/ekster/...
|
RUN go get p83.nl/go/ekster/...
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine
|
FROM alpine:3.7
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
RUN ["mkdir", "-p", "/opt/micropub"]
|
RUN ["mkdir", "-p", "/opt/micropub"]
|
||||||
WORKDIR /opt/micropub
|
WORKDIR /opt/micropub
|
||||||
|
|
Loading…
Reference in New Issue
Block a user