Skip to content

Commit 22a3f78

Browse files
authored
Add release related yaml files into release tar ball (#35)
Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>
1 parent 57d2db7 commit 22a3f78

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/actions/build/release-artifacts/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ runs:
3030
- name: Create release tarball
3131
shell: bash
3232
run: |
33-
# Find all release artifacts and create tarball
34-
# This will include .tar.gz, .zip, .tgz (Helm charts), and any other release files
3533
find . -type f \( -iname "*${{ inputs.releaseVersion }}*.tar.gz" -o \
3634
-iname "*${{ inputs.releaseVersion }}*.zip" -o \
37-
-iname "*${{ inputs.releaseVersion }}*.tgz" \) \
35+
-iname "*${{ inputs.releaseVersion }}*.tgz" -o \
36+
-iname "*${{ inputs.releaseVersion }}*.yaml" \) \
3837
-exec tar -rvf release-${{ inputs.artifactSuffix }}-${{ inputs.releaseVersion }}.tar {} \;
3938
4039
- name: Upload release artifacts

.github/workflows/reusable-test-integrations.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,23 @@ jobs:
408408
tar -tf "$TARBALL"
409409
echo "✓ Release artifacts created successfully"
410410
411+
# This check is currently only for Operators repo as yamls were missing in release tar ball
412+
- name: Verify YAML release artifacts in tarball
413+
if: ${{ inputs.clusterOperatorBuild == true }}
414+
run: |
415+
TARBALL="release-${{ inputs.artifactSuffix }}-${{ inputs.releaseVersion }}.tar"
416+
417+
YAML_COUNT=$(tar -tf "$TARBALL" | grep -c '\.yaml$' || true)
418+
if [ "$YAML_COUNT" -eq 0 ]; then
419+
echo "Release tarball contents:"
420+
tar -tf "$TARBALL"
421+
echo "No YAML files found in release tarball for operator build"
422+
exit 1
423+
fi
424+
425+
echo "Found $YAML_COUNT YAML file(s) in release tarball:"
426+
tar -tf "$TARBALL" | grep '\.yaml$'
427+
411428
test-publish-helm:
412429
name: Publish Helm Charts
413430
if: ${{ inputs.helmChartName != 'none' }}

0 commit comments

Comments
 (0)