From 003362afe7b3824038d5eb6864384061ab7206af Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Thu, 5 Oct 2023 10:48:17 -0500 Subject: [PATCH] :ghost: Support seed build args. (#503) Better support for test run analysis with seed PRs using `--build-arg SEED_PROJECT ` `--build-arg SEED_BRANCH ` Example: ``` $ docker build . -t quay.io/jortel/tackle2-hub:latest \ --build-arg 'SEED_PROJECT=jortel/tackle2-seed' \ --build-arg 'SEED_BRANCH=add-targets' \ && docker push quay.io/jortel/tackle2-hub:latest ``` Signed-off-by: Jeff Ortel --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a29319844..2aa1e3695 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,9 @@ FROM registry.access.redhat.com/ubi9/go-toolset:latest as builder ENV GOPATH=$APP_ROOT COPY --chown=1001:0 . . RUN make docker -RUN git clone https://github.com/konveyor/tackle2-seed +ARG SEED_PROJECT=konveyor/tackle2-seed +ARG SEED_BRANCH=main +RUN git clone --branch ${SEED_BRANCH} https://github.com/${SEED_PROJECT} FROM quay.io/konveyor/static-report as report