test-3
continuous-integration/drone/push Build is failing Details

This commit is contained in:
user-penguin 2024-05-19 17:40:45 +07:00
parent 0387e78db8
commit b9fdfb584b
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ steps:
- name: build
image: golang
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
image: golang

View File

@ -2,4 +2,4 @@ FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY cake_crm /usr/local/bin/cake_crm
RUN chmod +x /usr/local/bin/cake_crm
CMD ["cake_crm"]
CMD ["/usr/local/bin/cake_crm"]