File tree Expand file tree Collapse file tree
actions/build-and-push-image Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,17 @@ set -euo pipefail
55build_and_push_image () {
66 local image_flavor=" $1 "
77
8- docker login -u " $QUAY_STACKROX_IO_RW_USERNAME " --password-stdin <<< " $QUAY_STACKROX_IO_RW_PASSWORD" quay.io
8+ # For retrieving private images from quay.io/rhacs-eng (roxie).
9+ docker login -u " $QUAY_RHACS_ENG_RW_USERNAME " --password-stdin <<< " $QUAY_RHACS_ENG_RW_PASSWORD" quay.io
910
1011 TAG=" $( scripts/get_tag.sh " ${image_flavor} " ) "
1112 IMAGE=" quay.io/stackrox-io/apollo-ci:${TAG} "
1213
1314 make " ${image_flavor} -image"
1415
16+ # For pushing to quay.io/stackrox-io/apollo-ci.
17+ docker login -u " $QUAY_STACKROX_IO_RW_USERNAME " --password-stdin <<< " $QUAY_STACKROX_IO_RW_PASSWORD" quay.io
18+
1519 retry 5 true docker push " ${IMAGE} "
1620
1721 echo " image-tag=${IMAGE} " >> " ${GITHUB_OUTPUT} "
Original file line number Diff line number Diff line change 1212env :
1313 QUAY_STACKROX_IO_RW_USERNAME : ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
1414 QUAY_STACKROX_IO_RW_PASSWORD : ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}
15+ QUAY_RHACS_ENG_RW_USERNAME : ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
16+ QUAY_RHACS_ENG_RW_PASSWORD : ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
1517
1618jobs :
1719
Original file line number Diff line number Diff line change 22# binaries and images. Builds upon stackrox-build.Dockerfile.
33
44ARG BASE_TAG
5+ ARG ROXIE_VERSION=0.1.2
6+ ARG ROXIE_CHECKSUM=sha256:808acf790369f3cb5744c5c03a4f97e2c57e8e752ae2bce952515bed3fdfd00d
7+ FROM quay.io/rhacs-eng/roxie:v${ROXIE_VERSION}@${ROXIE_CHECKSUM} AS roxie-installer
8+
59FROM quay.io/stackrox-io/apollo-ci:${BASE_TAG} as base
610
711# This line makes sure that piped commands in RUN instructions exit early.
@@ -45,7 +49,6 @@ RUN dnf update -y \
4549 xz \
4650 zip \
4751 && dnf remove -y java-1.8.0-openjdk-headless \
48- && dnf --disablerepo="*" --enablerepo="pgdg13" install -y postgresql13 postgresql13-server postgresql13-contrib \
4952 && dnf --disablerepo="*" --enablerepo="pgdg14" install -y postgresql14 postgresql14-server postgresql14-contrib \
5053 && dnf --disablerepo="*" --enablerepo="pgdg15" install -y postgresql15 postgresql15-server postgresql15-contrib \
5154 && dnf clean all \
@@ -161,6 +164,9 @@ RUN set -ex \
161164 && pip3 install pycodestyle=="${PYCODESTYLE_VERSION}" \
162165 pylint=="${PYLINT_VERSION}"
163166
167+ # Install roxie.
168+ COPY --from=roxie-installer /usr/local/bin/roxie /usr/bin/roxie
169+
164170RUN \
165171 mv /bin/bash /bin/real-bash && \
166172 mv /bin/bash-wrapper /bin/bash
Original file line number Diff line number Diff line change 11# Provides the tooling required run UI tests against the StackRox images.
22
3+ ARG ROXIE_VERSION=0.1.2
4+ ARG ROXIE_CHECKSUM=sha256:808acf790369f3cb5744c5c03a4f97e2c57e8e752ae2bce952515bed3fdfd00d
5+ FROM quay.io/rhacs-eng/roxie:v${ROXIE_VERSION}@${ROXIE_CHECKSUM} AS roxie-installer
6+
37FROM quay.io/centos/centos:stream9
48
59# This line makes sure that piped commands in RUN instructions exit early.
@@ -212,6 +216,9 @@ RUN set -ex \
212216 && pip3 install pycodestyle=="${PYCODESTYLE_VERSION}" \
213217 pylint=="${PYLINT_VERSION}"
214218
219+ # Install roxie.
220+ COPY --from=roxie-installer /usr/local/bin/roxie /usr/bin/roxie
221+
215222RUN \
216223 mv /bin/bash /bin/real-bash && \
217224 mv /bin/bash-wrapper /bin/bash
You can’t perform that action at this time.
0 commit comments