mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-26 19:30:55 +01:00
build: upgrade Go & alpine version (#1989)
Co-authored-by: Michel Tu <michel.tu@databricks.com> Co-authored-by: Jiri Stary <72435227+Jiri-Stary@users.noreply.github.com>
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -20,7 +20,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.23
|
||||
go-version: 1.25
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
FROM golang:1.23 AS build
|
||||
FROM golang:1.25 AS build
|
||||
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
||||
COPY . .
|
||||
RUN VERSION=$(git describe --tags --abbrev=0) && \
|
||||
CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=${VERSION}"
|
||||
|
||||
FROM alpine:3.19
|
||||
FROM alpine:3.22
|
||||
RUN apk add --no-cache bash git openssh-client
|
||||
COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/
|
||||
|
||||
|
||||
Reference in new issue
Block a user