Skip to content

Commit 00dbbaf

Browse files
committed
test direct oci-link
1 parent e185bbe commit 00dbbaf

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/package-min-bundle.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,42 @@ jobs:
4040
echo "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}" | helm registry login -u "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}" --password-stdin quay.io
4141
4242
- name: Download online bundle
43+
id: download-bundle
4344
env:
4445
RELEASE_STREAM: ${{ inputs.release_stream }}
4546
OCI_LINK: ${{ inputs.oci_link }}
4647
run: |
4748
set -x
48-
echo "test"
4949
5050
# TODO: REMOVE THIS AFTER FIXING INPUTS FOR PUSH EVENTS
5151
# This is a temporary default for local/push testing
5252
RELEASE_STREAM=${RELEASE_STREAM:-dev-gov}
53+
OCI_LINK="quay.io/wire/bundles/dev/gov:2026.8.0-rc.20260731.113937"
5354
5455
# TODO: only if RELEASE_STREAM is configured
5556
5657
TEMP_DIR=$(mktemp -d)
57-
trap "rm -rf $TEMP_DIR" EXIT
58-
oras pull "quay.io/wire/release-streams/bundles:$RELEASE_STREAM" -o "$TEMP_DIR"
58+
echo "TEMP_DIR=$TEMP_DIR" >> $GITHUB_OUTPUT
5959
60-
BUILD_JSON=$(cat "$TEMP_DIR/build.json")
61-
echo "$BUILD_JSON"
60+
if [ -n "$OCI_LINK" ]; then
61+
# If OCI_LINK is provided, use it directly
62+
oras pull "$OCI_LINK" -o "$TEMP_DIR"
63+
else
64+
# Otherwise, get the OCI link from the release stream's build.json
65+
oras pull "quay.io/wire/release-streams/bundles:$RELEASE_STREAM" -o "$TEMP_DIR"
6266
63-
REPOSITORY=$(echo "$BUILD_JSON" | jq -r '.repository')
64-
TAG=$(echo "$BUILD_JSON" | jq -r '.tag')
67+
BUILD_JSON=$(cat "$TEMP_DIR/build.json")
68+
echo "$BUILD_JSON"
6569
66-
echo "$REPOSITORY:$TAG"
67-
oras pull "$REPOSITORY:$TAG" -o "$TEMP_DIR"
70+
REPOSITORY=$(echo "$BUILD_JSON" | jq -r '.repository')
71+
TAG=$(echo "$BUILD_JSON" | jq -r '.tag')
72+
73+
oras pull "$REPOSITORY:$TAG" -o "$TEMP_DIR"
74+
fi
6875
6976
# Extract the bundle
7077
tar -xzf "$TEMP_DIR"/*.tgz -C "$TEMP_DIR"
7178
72-
ls "$TEMP_DIR"
79+
- name: Process bundle
80+
run: |
81+
ls "${{ steps.download-bundle.outputs.TEMP_DIR }}"

0 commit comments

Comments
 (0)