Skip to content

Commit 65f9a77

Browse files
authored
Publish Image for Redhat software certification (#19)
Signed-off-by: rasel <rasel@appscode.com>
1 parent e62d91a commit 65f9a77

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
@@ -567,3 +567,9 @@ deploy-to-kind: push-to-kind install
567567

568568
.PHONY: deploy
569569
deploy: uninstall push install
570+
571+
.PHONY: docker-certify-redhat
572+
docker-certify-redhat:
573+
@preflight check container $(IMAGE):$(VERSION_UBI) \
574+
--submit \
575+
--certification-component-id=6957a09f523a173a860a43a0

0 commit comments

Comments
 (0)