try fix
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
fc04dcc259
commit
2ef4c079e1
|
@ -6,10 +6,7 @@ steps:
|
|||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- set GOOS=linux
|
||||
- set GOARCH=amd64
|
||||
- set CGO_ENABLED=0
|
||||
- go build -o cake_crm cmd/cake_crm/main.go
|
||||
- GOOS=linux GOARCH=amd64 go build -o cake_crm cmd/cake_crm/main.go
|
||||
|
||||
- name: test
|
||||
image: golang
|
||||
|
@ -49,7 +46,7 @@ steps:
|
|||
command_timeout: 10s
|
||||
script:
|
||||
- cd deploys/cake_crm
|
||||
- docker-compose up -d --force-recreate
|
||||
- docker-compose up -d --build --force-recreate
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
FROM golang:1.22
|
||||
RUN apk add --no-cache ca-certificates
|
||||
FROM golang:1.22.3-alpine3.19
|
||||
COPY cake_crm /usr/local/bin/cake_crm
|
||||
RUN chmod +x /usr/local/bin/cake_crm
|
||||
CMD ["/usr/local/bin/cake_crm"]
|
||||
CMD ["cake_crm"]
|
|
@ -6,7 +6,7 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8090:8080"
|
||||
# environment:
|
||||
# - ENV_VAR_NAME=env_var_value
|
||||
|
||||
|
|
Loading…
Reference in New Issue