Compare commits
4 Commits
b80936cade
...
48cccc1b77
| Author | SHA1 | Date | |
|---|---|---|---|
| 48cccc1b77 | |||
| 845642d16a | |||
|
|
23aabdbcaa | ||
|
|
880ff4bff4 |
@@ -10,7 +10,14 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13925f8d5 # v4
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
|
|
||||||
- name: Build (includes make check)
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
|
||||||
run: docker build .
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Install golangci-lint
|
||||||
|
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@5d1e709b7be35cb2025444e19de266b056b7b7ee # v2.10.1
|
||||||
|
|
||||||
|
- name: Run make check
|
||||||
|
run: make check
|
||||||
|
|||||||
@@ -20,13 +20,7 @@ RUN go mod download
|
|||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install golangci-lint for checks
|
# Build the binary
|
||||||
RUN go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@5d1e709b7be35cb2025444e19de266b056b7b7ee
|
|
||||||
|
|
||||||
# Run all checks (lint, vet, test, build)
|
|
||||||
RUN make check
|
|
||||||
|
|
||||||
# Build the final binary with version info
|
|
||||||
RUN CGO_ENABLED=1 go build -v -o secret cmd/secret/main.go
|
RUN CGO_ENABLED=1 go build -v -o secret cmd/secret/main.go
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
|
|||||||
Reference in New Issue
Block a user