diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b1571ea..97e4eb53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,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 7c60f53f..09a2ba91 100644 --- a/Makefile +++ b/Makefile @@ -417,3 +417,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=695bac12274e2ac1e9d40762