diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee76419c..e1eca3a0 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 + - 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 d68986d2..d110998b 100644 --- a/Makefile +++ b/Makefile @@ -473,3 +473,9 @@ mv "$(LOCALBIN)/$$(basename "$(1)")" "$(1)-$(3)" ;\ } ;\ ln -sf "$$(realpath "$(1)-$(3)")" "$(1)" endef + +.PHONY: docker-certify-redhat +docker-certify-redhat: + @preflight check container $(IMAGE):$(VERSION_UBI) \ + --submit \ + --certification-component-id=6957d07e9d3545da14d48e8d