Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 99f2a25

Browse files
authored
Merge pull request #27 from aryan9600/libgit2-only
fix Dockerfile comments and Makefile test step
2 parents 33cd99c + ae95685 commit 99f2a25

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This Dockerfile tests the hack/Makefile output against git2go.
1+
# This Dockerfile builds and packages libgit2 linked with openssl and libssh2.
2+
23
ARG BASE_VARIANT=alpine
34
ARG GO_VERSION=1.18
45
ARG XX_VERSION=1.1.0

Dockerfile.libgit2-only

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This Dockerfile tests the hack/Makefile output against git2go.
1+
# This Dockerfile builds and packages libgit2 only (not linked with openssl and libssh2)
2+
23
ARG BASE_VARIANT=alpine
34
ARG GO_VERSION=1.17
45
ARG XX_VERSION=1.1.0

Dockerfile.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This Dockerfile tests the hack/Makefile output against git2go.
1+
# This Dockerfile builds libgit2 linked with openssl and libssh2; and tests it against git2go.
2+
23
ARG BASE_VARIANT=alpine
34
ARG GO_VERSION=1.18
45
ARG XX_VERSION=1.1.0

Dockerfile.test-libgit2-only

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This Dockerfile tests the hack/Makefile output against git2go.
1+
# This Dockerfile builds and packages libgit2 only (not linked with openssl and libssh2); and tests it against git2go.
2+
23
ARG BASE_VARIANT=alpine
34
ARG GO_VERSION=1.17
45
ARG XX_VERSION=1.1.0

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ TAG ?= latest
33
ifeq ($(LIBGIT2_ONLY),true)
44
IMG ?= ghcr.io/fluxcd/golang-with-libgit2-only
55
DOCKERFILE ?= Dockerfile.libgit2-only
6+
TEST_DOCKERFILE ?= Dockerfile.test-libgit2-only
67
else
78
IMG ?= ghcr.io/fluxcd/golang-with-libgit2-all
89
DOCKERFILE ?= Dockerfile
10+
TEST_DOCKERFILE ?= Dockerfile.test
911
endif
1012

1113
PLATFORMS ?= linux/amd64,linux/arm/v7,linux/arm64
@@ -56,9 +58,7 @@ test:
5658
docker buildx build \
5759
--platform=$(PLATFORMS) \
5860
--tag $(IMG):$(TAG)-test \
59-
--build-arg LIBGIT2_IMG=$(IMG) \
60-
--build-arg LIBGIT2_TAG=$(TAG) \
61-
--file $(DOCKERFILE) \
61+
--file $(TEST_DOCKERFILE) \
6262
$(BUILD_ARGS) .
6363

6464
.PHONY: builder

0 commit comments

Comments
 (0)