File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
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
@@ -64,11 +64,11 @@ ENV CGO_ENABLED=1
6464
6565# Instead of using xx-go, (cross) compile with vanilla go leveraging musl tool chain.
6666RUN export PKG_CONFIG_PATH="/usr/local/$(xx-info triple)/lib/pkgconfig" && \
67- export CGO_LDFLAGS="$(pkg-config --static --libs --cflags libgit2) -static -fuse-ld=lld" && \
68- xx-go build \
69- -ldflags "-s -w" \
70- -tags 'netgo,osusergo,static_build' \
71- -o /source-controller -trimpath main.go;
67+ export CGO_LDFLAGS="$(pkg-config --static --libs --cflags libgit2) -static -fuse-ld=lld" && \
68+ xx-go build \
69+ -ldflags "-s -w" \
70+ -tags 'netgo,osusergo,static_build' \
71+ -o /source-controller -trimpath main.go;
7272
7373# Ensure that the binary was cross-compiled correctly to the target platform.
7474RUN xx-verify --static /source-controller
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ TAG ?= latest
44
55# Base image used to build the Go binary
66LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2-only
7- LIBGIT2_TAG ?= v0.2 .0
7+ LIBGIT2_TAG ?= v0.3 .0
88
99# Allows for defining additional Go test args, e.g. '-tags integration'.
1010GO_TEST_ARGS ?= -race
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/source-controller"
You can’t perform that action at this time.
0 commit comments