diff --git a/.github/workflows/feature-build.yaml b/.github/workflows/feature-build.yaml index e97c296568..bfc8e62c39 100644 --- a/.github/workflows/feature-build.yaml +++ b/.github/workflows/feature-build.yaml @@ -296,6 +296,24 @@ jobs: path: everest-catalog token: ${{ secrets.ROBOT_TOKEN }} + - name: Catalog - update veneer file + run: | + cd everest-catalog/tools + go run . \ + --veneer-file ../veneer/everest-operator.yaml \ + --channel fast-v0 \ + --new-version ${{ env.VERSION }} + + cd .. + curl -Lo /tmp/opm https://github.com/operator-framework/operator-registry/releases/download/v1.48.0/${OS}-${ARCH}-opm + chmod +x /tmp/opm + /tmp/opm alpha render-template basic --skip-tls -o yaml < veneer/everest-operator.yaml > catalog/everest-operator/catalog.yaml + # Check if catalog has the new version listed + if ! grep -q "$VERSION$" catalog/everest-operator/catalog.yaml; then + echo "catalog/everest-operator/catalog.yaml does not include the version $VERSION" + exit 1 + fi + - name: Catalog - setup Docker meta for everest-catalog id: catalog_meta uses: docker/metadata-action@v5