test-3
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
0387e78db8
commit
b9fdfb584b
|
@ -6,7 +6,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o cake_crm cmd/cake_crm/main.go
|
- go build GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o cake_crm cmd/cake_crm/main.go
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang
|
image: golang
|
||||||
|
|
|
@ -2,4 +2,4 @@ FROM alpine:latest
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
COPY cake_crm /usr/local/bin/cake_crm
|
COPY cake_crm /usr/local/bin/cake_crm
|
||||||
RUN chmod +x /usr/local/bin/cake_crm
|
RUN chmod +x /usr/local/bin/cake_crm
|
||||||
CMD ["cake_crm"]
|
CMD ["/usr/local/bin/cake_crm"]
|
Loading…
Reference in New Issue