File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ARG GO_VERSION=1.19
33ARG XX_VERSION=1.1.2
44
55ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2-only
6- ARG LIBGIT2_TAG=v0.2 .0
6+ ARG LIBGIT2_TAG=v0.3 .0
77
88FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs
99
@@ -62,12 +62,12 @@ ARG TARGETARCH
6262ENV CGO_ENABLED=1
6363
6464RUN export LIBRARY_PATH="/usr/local/$(xx-info triple)" && \
65- export PKG_CONFIG_PATH="/usr/local/$(xx-info triple)/lib/pkgconfig" && \
66- export CGO_LDFLAGS="$(pkg-config --static --libs --cflags libgit2) -static -fuse-ld=lld" && \
67- xx-go build \
68- -ldflags "-s -w" \
69- -tags 'netgo,osusergo,static_build' \
70- -o /image-automation-controller -trimpath main.go;
65+ export PKG_CONFIG_PATH="/usr/local/$(xx-info triple)/lib/pkgconfig" && \
66+ export CGO_LDFLAGS="$(pkg-config --static --libs --cflags libgit2) -static -fuse-ld=lld" && \
67+ xx-go build \
68+ -ldflags "-s -w" \
69+ -tags 'netgo,osusergo,static_build' \
70+ -o /image-automation-controller -trimpath main.go;
7171
7272# Ensure that the binary was cross-compiled correctly to the target platform.
7373RUN xx-verify --static /image-automation-controller
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ CRD_OPTIONS ?= crd:crdVersions=v1
88
99# Base image used to build the Go binary
1010LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2-only
11- LIBGIT2_TAG ?= v0.2 .0
11+ LIBGIT2_TAG ?= v0.3 .0
1212
1313# Allows for defining additional Docker buildx arguments,
1414# e.g. '--push'.
Original file line number Diff line number Diff line change 1616
1717set -euxo pipefail
1818
19- LIBGIT2_TAG=" ${LIBGIT2_TAG:- v0.2 .0} "
19+ LIBGIT2_TAG=" ${LIBGIT2_TAG:- v0.3 .0} "
2020GOPATH=" ${GOPATH:-/ root/ go} "
2121GO_SRC=" ${GOPATH} /src"
2222PROJECT_PATH=" github.com/fluxcd/image-automation-controller"
You can’t perform that action at this time.
0 commit comments