Skip to content

Commit 1d6e75f

Browse files
authored
Publish Image for Redhat software certification (#36)
Signed-off-by: rasel <rasel@appscode.com>
1 parent 9ef5403 commit 1d6e75f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
4343
make release
4444
45+
- name: Publish to Red Hat Ecosystem Catalog
46+
env:
47+
REGISTRY: ghcr.io/appscode
48+
PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }}
49+
run: |
50+
curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
51+
chmod +x preflight
52+
sudo mv preflight /usr/local/bin/preflight
53+
make docker-certify-redhat
54+
4555
- name: Release
4656
uses: softprops/action-gh-release@v1
4757
if: startsWith(github.ref, 'refs/tags/')

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,3 +541,9 @@ deploy-to-kind: push-to-kind install
541541

542542
.PHONY: deploy
543543
deploy: uninstall push install
544+
545+
.PHONY: docker-certify-redhat
546+
docker-certify-redhat:
547+
@preflight check container $(IMAGE):$(VERSION_UBI) \
548+
--submit \
549+
--certification-component-id=6957a64c7cad41de63420310

0 commit comments

Comments
 (0)