@@ -128,136 +128,34 @@ jobs:
128128 pip install ruff
129129 make format-check
130130
131- vars :
132- runs-on : ubuntu-24.04
133- outputs :
134- tag : ${{ steps.vars.outputs.tag }}
135- stackrox-io-image : ${{ steps.vars.outputs.stackrox-io-image }}
136- rhacs-eng-image : ${{ steps.vars.outputs.rhacs-eng-image }}
137- steps :
138- - uses : actions/checkout@v4
139- with :
140- submodules : true
141- fetch-depth : 0
142-
143- - id : vars
144- run : |
145- cat << EOF >> "$GITHUB_OUTPUT"
146- tag=$(make tag)
147- stackrox-io-image=$(make image-name)
148- rhacs-eng-image=$(FACT_REGISTRY="quay.io/rhacs-eng/fact" make image-name)
149- EOF
150-
151- container :
152- needs :
153- - vars
154- strategy :
155- fail-fast : false
156- matrix :
157- arch :
158- - amd64
159- - arm64
160- runs-on : ${{ (matrix.arch == 'arm64' && 'ubuntu-24.04-arm') || 'ubuntu-24.04' }}
161- env :
162- FACT_TAG : ${{ needs.vars.outputs.tag }}-${{ matrix.arch }}
163- FACT_VERSION : ${{ needs.vars.outputs.tag }}
164- STACKROX_IO_IMAGE : ${{ needs.vars.outputs.stackrox-io-image }}-${{ matrix.arch }}
165- RHACS_ENG_IMAGE : ${{ needs.vars.outputs.rhacs-eng-image }}-${{ matrix.arch }}
166- steps :
167- - uses : actions/checkout@v4
168- with :
169- submodules : true
170-
171- - name : Build image
172- run : DOCKER=podman make image
173-
174- - name : Login to quay.io/stackrox-io
175- uses : docker/login-action@v3
176- with :
177- registry : quay.io
178- username : ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
179- password : ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}
180-
181- - run : podman push "${STACKROX_IO_IMAGE}"
182-
183- - name : Login to quay.io/rhacs-eng
184- uses : docker/login-action@v3
185- with :
186- registry : quay.io
187- username : ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
188- password : ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
189-
190- - name : Tag and push to rhacs-eng
191- run : |
192- podman tag "${STACKROX_IO_IMAGE}" "${RHACS_ENG_IMAGE}"
193- podman push "${RHACS_ENG_IMAGE}"
194-
195- manifest-stackrox-io :
196- runs-on : ubuntu-24.04
197- needs :
198- - container
199- - vars
200- env :
201- ARCHS : amd64 arm64
202- steps :
203- - uses : redhat-actions/podman-login@v1
204- with :
205- registry : quay.io
206- username : ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
207- password : ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}
208-
209- - name : Create multiarch manifest
210- run : |
211- podman manifest create ${{ needs.vars.outputs.stackrox-io-image }} \
212- ${{ needs.vars.outputs.stackrox-io-image }}-amd64 \
213- ${{ needs.vars.outputs.stackrox-io-image }}-arm64
214- podman manifest inspect ${{ needs.vars.outputs.stackrox-io-image }}
215- podman manifest push ${{ needs.vars.outputs.stackrox-io-image }}
216-
217- manifest-rhacs-eng :
218- runs-on : ubuntu-24.04
219- needs :
220- - container
221- - vars
222- env :
223- ARCHS : amd64 arm64
224- steps :
225- - uses : redhat-actions/podman-login@v1
226- with :
227- registry : quay.io
228- username : ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
229- password : ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
131+ container-build :
132+ uses : ./.github/workflows/container-build.yml
133+ secrets : inherit
230134
231- - name : Create multiarch manifest
232- run : |
233- podman manifest create ${{ needs.vars.outputs.rhacs-eng-image }} \
234- ${{ needs.vars.outputs.rhacs-eng-image }}-amd64 \
235- ${{ needs.vars.outputs.rhacs-eng-image }}-arm64
236- podman manifest inspect ${{ needs.vars.outputs.rhacs-eng-image }}
237- podman manifest push ${{ needs.vars.outputs.rhacs-eng-image }}
135+ container-build-otel :
136+ uses : ./.github/workflows/container-build.yml
137+ secrets : inherit
138+ with :
139+ tag-suffix : ' -otel'
140+ make-target : ' image-otel'
238141
239142 unit-tests :
240143 uses : ./.github/workflows/unit-tests.yml
241144 secrets : inherit
242145
243146 integration-tests :
244147 needs :
245- - vars
246- - manifest-stackrox-io
247- - manifest-rhacs-eng
148+ - container-build
248149 uses : ./.github/workflows/integration-tests.yml
249150 with :
250- tag : ${{ needs.vars .outputs.tag }}
151+ tag : ${{ needs.container-build .outputs.tag }}
251152 secrets : inherit
252153
253154 performance-tests :
254155 if : github.event_name == 'schedule'
255156 needs :
256- - vars
257- - manifest-stackrox-io
258- - manifest-rhacs-eng
259- - integration-tests
260- uses : ./.github/workflows/performance-tests.yml
157+ - container-build
158+ uses : ./.github/workflows/integration-tests.yml
261159 with :
262- tag : ${{ needs.vars .outputs.tag }}
160+ tag : ${{ needs.container-build .outputs.tag }}
263161 secrets : inherit
0 commit comments