From 02f5b94baf91af6f4d16cd1cd760d1c2ce3aba7c Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Fri, 8 Jul 2022 09:39:06 +0100 Subject: [PATCH] Update to golang-with-libgit2-all image This dependency now releases two different images, one containing the entire dependency chain for libgit2, and another containing just the library itself. The latter will be later used once Managed Transport is completely removed from source controller. As part of this update, the image now follows a new tag format which is semver based and starts at 0.1.0. Signed-off-by: Paulo Gomes --- Dockerfile | 4 ++-- Makefile | 4 ++-- tests/fuzz/oss_fuzz_build.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7e1e05a..13e10b9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ ARG BASE_VARIANT=alpine ARG GO_VERSION=1.17 ARG XX_VERSION=1.1.0 -ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2 -ARG LIBGIT2_TAG=libgit2-1.3.1 +ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2-all +ARG LIBGIT2_TAG=v0.1.0 FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs diff --git a/Makefile b/Makefile index b1975458..0dc6d38f 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ IMG ?= fluxcd/source-controller TAG ?= latest # Base image used to build the Go binary -LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2 -LIBGIT2_TAG ?= libgit2-1.3.1 +LIBGIT2_IMG ?= ghcr.io/fluxcd/golang-with-libgit2-all +LIBGIT2_TAG ?= v0.1.0 # Allows for defining additional Go test args, e.g. '-tags integration'. GO_TEST_ARGS ?= -race diff --git a/tests/fuzz/oss_fuzz_build.sh b/tests/fuzz/oss_fuzz_build.sh index b8120e51..75e8a81b 100755 --- a/tests/fuzz/oss_fuzz_build.sh +++ b/tests/fuzz/oss_fuzz_build.sh @@ -16,7 +16,7 @@ set -euxo pipefail -LIBGIT2_TAG="${LIBGIT2_TAG:-libgit2-1.3.1}" +LIBGIT2_TAG="${LIBGIT2_TAG:-v0.1.0}" GOPATH="${GOPATH:-/root/go}" GO_SRC="${GOPATH}/src" PROJECT_PATH="github.com/fluxcd/source-controller"