@@ -27,18 +27,22 @@ jobs:
27
27
runs-on : ubuntu-latest
28
28
env :
29
29
REPOSITORY : ${{ github.repository_owner }}/mongodb-atlas-kubernetes-operator-prerelease
30
+ outputs :
31
+ tag : ${{ steps.prepare.outputs.tag }}
30
32
steps :
31
33
- name : Check out code
32
34
uses : actions/checkout@v4
33
35
with :
34
36
ref : ${{github.event.pull_request.head.sha}}
35
37
submodules : true
36
38
fetch-depth : 0
39
+
37
40
- name : Prepare tag
38
41
id : prepare
39
42
uses : ./.github/actions/set-tag
40
43
- name : Log in to ghcr.io registry
41
44
run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
45
+
42
46
- name : Build and Push image
43
47
uses : ./.github/actions/build-push-image
44
48
with :
48
52
tags : ghcr.io/${{ env.REPOSITORY }}:${{ steps.prepare.outputs.tag }}
49
53
platforms : linux/amd64
50
54
push_to_docker : false
55
+
51
56
- name : Do preflight-check on test image
52
57
uses : ./.github/actions/certify-openshift-images
53
58
with :
@@ -180,9 +185,7 @@ jobs:
180
185
uses :
jetify-com/[email protected]
181
186
with :
182
187
enable-cache : ' true'
183
- - name : Prepare tag
184
- id : prepare
185
- uses : ./.github/actions/set-tag
188
+
186
189
- name : Set properties
187
190
id : properties
188
191
run : |
@@ -194,8 +197,8 @@ jobs:
194
197
- name : Generate configuration for the tests
195
198
uses : ./.github/actions/gen-install-scripts
196
199
with :
197
- IMAGE_URL : ${{ env.GHCR_REPO }}:${{ steps .prepare.outputs.tag }}
198
- VERSION : ${{ steps .prepare.outputs.tag }}
200
+ IMAGE_URL : ${{ env.GHCR_REPO }}:${{ needs .prepare-e2e .outputs.tag }}
201
+ VERSION : ${{ needs .prepare-e2e .outputs.tag }}
199
202
ENV : dev
200
203
201
204
- name : Change path for the test
@@ -226,11 +229,11 @@ jobs:
226
229
MCLI_PRIVATE_API_KEY : ${{ secrets.ATLAS_PRIVATE_KEY }}
227
230
MCLI_ORG_ID : ${{ secrets.ATLAS_ORG_ID}}
228
231
MCLI_OPS_MANAGER_URL : " https://cloud-qa.mongodb.com/"
229
- IMAGE_URL : " ${{ env.GHCR_REPO }}:${{ steps .prepare.outputs.tag }}"
232
+ IMAGE_URL : " ${{ env.GHCR_REPO }}:${{ needs .prepare-e2e .outputs.tag }}"
230
233
IMAGE_PULL_SECRET_REGISTRY : ghcr.io
231
234
IMAGE_PULL_SECRET_USERNAME : $
232
235
IMAGE_PULL_SECRET_PASSWORD : " ${{ secrets.GITHUB_TOKEN }}"
233
- BUNDLE_IMAGE : " ${{ env.GHCR_BUNDLES_REPO}}:${{ steps .prepare.outputs.tag }}"
236
+ BUNDLE_IMAGE : " ${{ env.GHCR_BUNDLES_REPO}}:${{ needs .prepare-e2e .outputs.tag }}"
234
237
K8S_PLATFORM : " ${{ steps.properties.outputs.k8s_platform }}"
235
238
K8S_VERSION : " ${{ steps.properties.outputs.k8s_version }}"
236
239
TEST_NAME : " ${{ matrix.test }}"
0 commit comments