Skip to content

Commit 00f5677

Browse files
committed
Fix integration test to also work on forks
Signed-off-by: Marco Franssen <[email protected]>
1 parent f716a42 commit 00f5677

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ delete-cluster() {
8787
}
8888

8989
load-images() {
90+
org_name=$(echo "$GITHUB_REPOSITORY" | tr '/' "\n" | head -1 | tr -d "\n")
91+
org_name="${org_name:-spiffe}" # default to spiffe in case ran on local
92+
registry=ghcr.io/${org_name}
93+
9094
echo "Loading images..."
9195
"${KIND}" load docker-image \
92-
ghcr.io/spiffe/spiffe-csi-driver:devel \
96+
"${registry}/spiffe-csi-driver:devel" \
9397
spiffe-csi-test-workload:test
9498
echo "Images loaded."
9599
}

0 commit comments

Comments
 (0)