Skip to content

Commit 38594e1

Browse files
authored
Publish Image for Redhat software certification (#25)
Signed-off-by: rasel <rasel@appscode.com>
1 parent 6e8b3b4 commit 38594e1

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ jobs:
6464
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
6565
make release COMPRESS=yes
6666
67+
- name: Publish to Red Hat Ecosystem Catalog
68+
env:
69+
REGISTRY: ghcr.io/appscode
70+
PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }}
71+
run: |
72+
curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
73+
chmod +x preflight
74+
sudo mv preflight /usr/local/bin/preflight
75+
make docker-certify-redhat
76+
6777
- name: Release
6878
uses: softprops/action-gh-release@v1
6979
if: startsWith(github.ref, 'refs/tags/')

Makefile

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

418418
.PHONY: deploy
419419
deploy: uninstall push install
420+
421+
.PHONY: docker-certify-redhat
422+
docker-certify-redhat:
423+
@preflight check container $(IMAGE):$(VERSION_UBI) \
424+
--submit \
425+
--certification-component-id=695bac12274e2ac1e9d40762

0 commit comments

Comments
 (0)