72
All checks were successful
Go Linter / Tag Commit (push) Successful in 14s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Successful in 3m47s
Go Linter / Build golang services (api_gateway) (push) Successful in 4m15s
Go Linter / Push Docker Images (api_gateway) (push) Successful in 5m4s
All checks were successful
Go Linter / Tag Commit (push) Successful in 14s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Successful in 3m47s
Go Linter / Build golang services (api_gateway) (push) Successful in 4m15s
Go Linter / Push Docker Images (api_gateway) (push) Successful in 5m4s
This commit is contained in:
@@ -11,6 +11,8 @@ RUN go mod download -x
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN go mod tidy && go mod download -x
|
||||||
|
|
||||||
RUN SWAGGER_HOST=${SWAGGER_HOST} make docs
|
RUN SWAGGER_HOST=${SWAGGER_HOST} make docs
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="${BUILD_LDFLAGS}" -trimpath -o main ./cmd/main.go
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="${BUILD_LDFLAGS}" -trimpath -o main ./cmd/main.go
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -70,7 +70,7 @@ docs: $(BIN_DIR)/swag
|
|||||||
$(BIN_DIR)/swag init -g $$TEMP_MAIN -o $(SWAGGER_DOCS_PATH) --parseDependency --parseInternal && \
|
$(BIN_DIR)/swag init -g $$TEMP_MAIN -o $(SWAGGER_DOCS_PATH) --parseDependency --parseInternal && \
|
||||||
rm -f $$TEMP_MAIN && \
|
rm -f $$TEMP_MAIN && \
|
||||||
echo "Swagger документация успешно сгенерирована с host: $(HOST)" && \
|
echo "Swagger документация успешно сгенерирована с host: $(HOST)" && \
|
||||||
echo "Документация доступна по адресу: http://$(HOST)/swagger/index.html"
|
echo "Документация доступна по адресу: $(HOST)/swagger/index.html"
|
||||||
|
|
||||||
## -- Run --
|
## -- Run --
|
||||||
## To change env use: make run CONFIG_PATH={config file dir path} ENV={env}
|
## To change env use: make run CONFIG_PATH={config file dir path} ENV={env}
|
||||||
|
|||||||
Reference in New Issue
Block a user