File tree 3 files changed +9
-9
lines changed
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
3
3
ARG XX_VERSION=1.1.2
4
4
5
5
ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2-only
6
- ARG LIBGIT2_TAG=v0.2 .0
6
+ ARG LIBGIT2_TAG=v0.3 .0
7
7
8
8
FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs
9
9
@@ -62,12 +62,12 @@ ARG TARGETARCH
62
62
ENV CGO_ENABLED=1
63
63
64
64
RUN 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;
71
71
72
72
# Ensure that the binary was cross-compiled correctly to the target platform.
73
73
RUN 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
8
8
9
9
# Base image used to build the Go binary
10
10
LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2-only
11
- LIBGIT2_TAG ?= v0.2 .0
11
+ LIBGIT2_TAG ?= v0.3 .0
12
12
13
13
# Allows for defining additional Docker buildx arguments,
14
14
# e.g. '--push'.
Original file line number Diff line number Diff line change 16
16
17
17
set -euxo pipefail
18
18
19
- LIBGIT2_TAG=" ${LIBGIT2_TAG:- v0.2 .0} "
19
+ LIBGIT2_TAG=" ${LIBGIT2_TAG:- v0.3 .0} "
20
20
GOPATH=" ${GOPATH:-/ root/ go} "
21
21
GO_SRC=" ${GOPATH} /src"
22
22
PROJECT_PATH=" github.com/fluxcd/image-automation-controller"
You can’t perform that action at this time.
0 commit comments