diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22868308..8f17983a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,16 @@ jobs: docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN} make release COMPRESS=yes + - name: Publish to Red Hat Ecosystem Catalog + env: + REGISTRY: ghcr.io/appscode + PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }} + run: | + curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64 + chmod +x preflight + sudo mv preflight /usr/local/bin/preflight + make docker-certify-redhat + - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/Makefile b/Makefile index 885b4d93..acdf3531 100644 --- a/Makefile +++ b/Makefile @@ -421,3 +421,9 @@ deploy-to-kind: push-to-kind install .PHONY: deploy deploy: uninstall push install + +.PHONY: docker-certify-redhat +docker-certify-redhat: + @preflight check container $(IMAGE):$(VERSION_UBI) \ + --submit \ + --certification-component-id=6957a6b6f9322ede3e78de9b