diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d256a8692..199d4d759 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,11 +33,11 @@ jobs: languages: go - name: Go Build + working-directory: backend-go run: | - cd backend-go + sed -i '/^toolchain .*$/d' go.mod go install github.com/swaggo/swag/cmd/swag@latest - mkdir -p /workspace/app/target/application - CGO_ENABLED=0 GOOS=linux go build -v -o /workspace/app/target/application ./... + CGO_ENABLED=0 GOOS=linux go build -v # go: # name: Go diff --git a/backend-go/Dockerfile b/backend-go/Dockerfile index ff95ddbcf..7d2fa5711 100644 --- a/backend-go/Dockerfile +++ b/backend-go/Dockerfile @@ -8,7 +8,7 @@ RUN go mod download && \ RUN go install github.com/swaggo/swag/cmd/swag@latest COPY . . RUN swag init && swag fmt -RUN mkdir -p /workspace/app/target/application +RUN mkdir -p /workspace/app/target/application RUN CGO_ENABLED=0 GOOS=linux go build -v -o /workspace/app/target/application ./... HEALTHCHECK --interval=3000s --timeout=30s CMD go version || exit 1 diff --git a/backend-go/backend-go b/backend-go/backend-go new file mode 100755 index 000000000..0944ca8a8 Binary files /dev/null and b/backend-go/backend-go differ