Skip to content

Commit 76d13c5

Browse files
committed
fix wf bug
Signed-off-by: odubajDT <[email protected]>
1 parent 2d6aaf1 commit 76d13c5

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/e2e.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
name: E2E-Test
2+
on:
3+
workflow_call:
4+
inputs:
5+
image:
6+
description: "Image of OFO"
7+
type: "string"
8+
required: true
9+
# Declare default permissions as read only.
10+
permissions: read-all
211
env:
312
GO_VERSION: "~1.21"
413
defaults:
@@ -20,7 +29,7 @@ jobs:
2029
- name: Download image
2130
uses: actions/download-artifact@v3
2231
with:
23-
name: open-feature-operator-local-${{ github.sha }}
32+
name: ${{ inputs.image }}-${{ github.sha }}
2433
path: ${{ github.workspace }}
2534

2635
- name: Cache build tools
@@ -32,7 +41,7 @@ jobs:
3241

3342
- name: Load open-feature-operator image into docker
3443
run: |
35-
docker load --input ${{ github.workspace }}/open-feature-operator-local.tar
44+
docker load --input ${{ github.workspace }}/${{ inputs.image }}.tar
3645
3746
- name: Create k8s Kind Cluster
3847
uses: helm/[email protected]
@@ -43,15 +52,15 @@ jobs:
4352

4453
- name: Load open-feature-operator image into Kind cluster
4554
run: |
46-
kind load docker-image open-feature-operator-local:${{ github.sha }} --name open-feature-operator-test
55+
kind load docker-image ${{ inputs.image }}:${{ github.sha }} --name open-feature-operator-test
4756
4857
- name: Install Chainsaw
4958
uses: kyverno/action-install-chainsaw@56be3cb4ec65a987b6ef4d7ab3a55ee17760a57c # v0.1.2
5059

5160
- name: Run e2e test
5261
run: |
53-
IMG=open-feature-operator-local:${{ github.sha }} make deploy-operator
54-
IMG=open-feature-operator-local:${{ github.sha }} make e2e-test-chainsaw
62+
IMG=${{ inputs.image }}:${{ github.sha }} make deploy-operator
63+
IMG=${{ inputs.image }}:${{ github.sha }} make e2e-test-chainsaw
5564
5665
- name: Create reports
5766
if: failure()

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ jobs:
104104
strategy:
105105
matrix:
106106
node_image: [ v1.22.17, v1.23.17, v1.24.15, v1.25.11, v1.26.3, v1.27.3, v1.28.0 ]
107+
image: open-feature-operator-local
107108
uses: ./.github/workflows/e2e.yml

0 commit comments

Comments
 (0)