Skip to content

Commit 2b67fe1

Browse files
authored
Publish Image for Redhat software certification (#14)
Signed-off-by: rasel <rasel@appscode.com>
1 parent e42c59d commit 2b67fe1

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
@@ -59,6 +59,16 @@ jobs:
5959
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
6060
make release COMPRESS=yes
6161
62+
- name: Publish to Red Hat Ecosystem Catalog
63+
env:
64+
REGISTRY: ghcr.io/appscode
65+
PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }}
66+
run: |
67+
curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
68+
chmod +x preflight
69+
sudo mv preflight /usr/local/bin/preflight
70+
make docker-certify-redhat
71+
6272
- name: Release
6373
uses: softprops/action-gh-release@v1
6474
if: startsWith(github.ref, 'refs/tags/')

Makefile

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

422422
.PHONY: deploy
423423
deploy: uninstall push install
424+
425+
.PHONY: docker-certify-redhat
426+
docker-certify-redhat:
427+
@preflight check container $(IMAGE):$(VERSION_UBI) \
428+
--submit \
429+
--certification-component-id=6957a6b6f9322ede3e78de9b

0 commit comments

Comments
 (0)