Skip to content

Commit db583a3

Browse files
authored
Publish Image for Redhat software certification (#7)
Signed-off-by: rasel <[email protected]>
1 parent 931c767 commit db583a3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,14 @@ jobs:
7272
make release RELEASE=${{ matrix.k8s }}
7373
cd ../ubi
7474
make release RELEASE=${{ matrix.k8s }}
75+
76+
- name: Publish to Red Hat Ecosystem Catalog
77+
env:
78+
REGISTRY: ghcr.io/appscode
79+
PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }}
80+
run: |
81+
curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
82+
chmod +x preflight
83+
sudo mv preflight /usr/local/bin/preflight
84+
cd ubi
85+
make docker-certify-redhat RELEASE=${{ matrix.k8s }}

ubi/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ docker-manifest: manifest-version manifest-release
6060
.PHONY: release
6161
release:
6262
@$(MAKE) all-push docker-manifest --no-print-directory
63+
64+
.PHONY: docker-certify-redhat
65+
docker-certify-redhat:
66+
@preflight check container $(IMAGE):v$(RELEASE)-ubi \
67+
--submit \
68+
--certification-component-id=693fe748fb50161bb2a25330

0 commit comments

Comments
 (0)