Skip to content

Commit 1d00971

Browse files
committed
fix: publish test components to OCI registry before running OCI tests
Add setup step to build and publish greeting and calculator components to the local registry before attempting to pull them in OCI composition tests. This resolves 'manifest unknown' errors by ensuring components exist in registry.
1 parent 78c9827 commit 1d00971

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ jobs:
8282
- name: Verify Bazel Installation
8383
run: bazel version
8484

85+
- name: Setup OCI Registry with Test Components
86+
run: |
87+
# Build and publish test components to local registry for OCI tests
88+
echo "Publishing test components to localhost:5001 registry..."
89+
bazel run //examples/simple_oci_test:publish_greeting
90+
bazel run //examples/simple_oci_test:publish_calculator
91+
92+
# Verify components are available
93+
echo "Verifying registry contents..."
94+
curl -s http://localhost:5001/v2/_catalog || echo "Registry catalog request failed"
95+
curl -s http://localhost:5001/v2/test/simple/greeting/tags/list || echo "Greeting tags request failed"
96+
8597
- name: Build All Targets
8698
run: |
8799
# Build core working targets, exclude incomplete/problematic examples

0 commit comments

Comments
 (0)