diff --git a/projects/fluxcd/Dockerfile b/projects/fluxcd/Dockerfile index e4caaba84b42..2a9e357c1749 100644 --- a/projects/fluxcd/Dockerfile +++ b/projects/fluxcd/Dockerfile @@ -19,10 +19,11 @@ FROM gcr.io/oss-fuzz-base/base-builder-go ENV PROJECT_ROOT="${GOPATH:-/root/go}/src/github.com/fluxcd" RUN mkdir -p "${PROJECT_ROOT}" -RUN git clone --depth 1 https://github.com/fluxcd/notification-controller \ - "${PROJECT_ROOT}/notification-controller" -RUN git clone --depth 1 https://github.com/fluxcd/pkg \ - "${PROJECT_ROOT}/pkg" + +# Flux has its components scattered around multiple repositories due to its architecture. +# Here we clone all of them. The build process happens as build.sh iterate over each one of them. +ARG REPOSITORIES="pkg notification-controller kustomize-controller helm-controller image-reflector-controller source-controller image-automation-controller" +RUN for repo in ${REPOSITORIES}; do git clone --depth 1 "https://github.com/fluxcd/${repo}" "${PROJECT_ROOT}/${repo}"; done COPY build.sh $SRC/ WORKDIR $SRC