Skip to content

Commit

Permalink
Clip Go toolchain for build
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Sep 2, 2023
1 parent 8d87d3d commit f7c868e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend-go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file added backend-go/backend-go
Binary file not shown.

0 comments on commit f7c868e

Please sign in to comment.