Compare commits
4 Commits
9f0a241702
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bc2f47bc9 | |||
| ab0cb58a98 | |||
| 2a4d7d5205 | |||
| 4d67b0e06b |
@@ -1,5 +1,25 @@
|
||||
steps:
|
||||
test:
|
||||
image: golang:1.26
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go test ./...
|
||||
volumes:
|
||||
- go_build_cache:/root/.cache/go-build
|
||||
- go_mod_cache:/go/pkg/mod
|
||||
build:
|
||||
image: golang:1.26
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go build .
|
||||
volumes:
|
||||
- go_build_cache:/root/.cache/go-build
|
||||
- go_mod_cache:/go/pkg/mod
|
||||
deploy:
|
||||
image: docker
|
||||
commands:
|
||||
- apk add curl
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
FROM golang:1.25 as builder
|
||||
COPY . /castor
|
||||
RUN cd /castor && CGO_ENABLED=0 go build
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /castor/castor castor
|
||||
COPY ./castor castor
|
||||
CMD ["/castor"]
|
||||
Reference in New Issue
Block a user