Skip to content

Commit 3913789

Browse files
authored
Add ocm to example-httpbin-operator (#38)
* Add ocm to example-httpbin-operator Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com * modify ocm job Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> * use defined ocm job Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> * specify version Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com * disable run on pull request Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com * post review update Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com --------- Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
1 parent 1c77c8f commit 3913789

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/job-ocm.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: OCM
2+
on:
3+
push:
4+
tags:
5+
- 'ocm-*'
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read # to checkout the repository
11+
packages: write # to create packages
12+
13+
jobs:
14+
release:
15+
if: ${{ github.ref == 'refs/heads/main' }}
16+
uses: platform-mesh/.github/.github/workflows/job-ocm.yml@main
17+
secrets: inherit
18+
with:
19+
chartPath: charts/example-httpbin-operator
20+
componentName: github.com/platform-mesh/example-httpbin-operator
21+
componentConstructorFile: ./component-constructor.yaml
22+
ocmRegistryUrl: ghcr.io/platform-mesh

component-constructor.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# yaml-language-server: $schema= https://ocm.software/schemas/configuration-schema.yaml
2+
# ocm get resources ghcr.io/platform-mesh/ocm//github.com/platform-mesh/example-httpbin-operator --latest -r -o treewide
3+
components:
4+
- name: github.com/platform-mesh/example-httpbin-operator
5+
version: 0.1.0
6+
provider:
7+
name: platform-mesh
8+
resources:
9+
- name: oci-helm-chart-example-httpbin-operator
10+
type: helmChart
11+
version: 0.1.0
12+
access:
13+
type: ociArtifact
14+
imageReference: ghcr.io/platform-mesh/charts/example-httpbin-operator:0.1.0
15+
- name: image-example-httpbin-operator
16+
type: ociImage
17+
version: 0.1.0
18+
access:
19+
type: ociArtifact
20+
imageReference: ghcr.io/platform-mesh/example-httpbin-operator:0.1.0

0 commit comments

Comments
 (0)