Improve pipeline Makefile (#387)
### Description Minor refactoring in the pipeline service's Makefile. Changes: * Move `pipeline` executable to the `pipeline/bin` directory. * Remove unused targets from `pipeline/Makefile`.
This commit is contained in:
parent
100e473c2f
commit
d0436fa46d
|
@ -16,6 +16,6 @@ FROM alpine
|
||||||
#Copy certificates
|
#Copy certificates
|
||||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
# Copy our static executable.
|
# Copy our static executable.
|
||||||
COPY --from=build "/app/pipeline/pipeline-app" "/pipeline"
|
COPY --from=build "/app/pipeline/bin/pipeline" "/pipeline"
|
||||||
# Run the binary.
|
# Run the binary.
|
||||||
ENTRYPOINT ["/pipeline"]
|
ENTRYPOINT ["/pipeline"]
|
||||||
|
|
|
@ -1,21 +1,9 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
|
||||||
## help: print this help message
|
|
||||||
.PHONY: help
|
|
||||||
help:
|
|
||||||
@echo 'Usage:'
|
|
||||||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
CGO_ENABLED=0 GOOS=linux go build -o "./pipeline-app" cmd/main.go
|
CGO_ENABLED=0 GOOS=linux go build -o "./bin/pipeline" cmd/main.go
|
||||||
|
|
||||||
doc:
|
|
||||||
swag init -pd
|
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -v -cover ./...
|
go test -v -cover ./...
|
||||||
|
|
||||||
|
.PHONY: build test
|
||||||
.PHONY: build doc test
|
|
||||||
|
|
Loading…
Reference in New Issue