diff --git a/Makefile b/Makefile index 66eb8944..329da78b 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ collector-image: scanner-build-image: $(DOCKER) build \ -t quay.io/$(QUAY_REPO)/apollo-ci:$(shell scripts/get_tag.sh "scanner-build") \ + --build-arg STACKROX_CENTOS_TAG=$(STACKROX_CENTOS_TAG) \ -f images/scanner-build.Dockerfile \ images/ diff --git a/images/scanner-build.Dockerfile b/images/scanner-build.Dockerfile index 493db4e5..2a70ecef 100644 --- a/images/scanner-build.Dockerfile +++ b/images/scanner-build.Dockerfile @@ -1,6 +1,7 @@ # Provides the tooling required to run Scanner dockerized build targets. -FROM quay.io/centos/centos:stream8 +ARG STACKROX_CENTOS_TAG +FROM quay.io/centos/centos:${STACKROX_CENTOS_TAG} as base SHELL ["/bin/bash", "-o", "pipefail", "-c"]