You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/package_transfer.yaml
+1-12Lines changed: 1 addition & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
name: OCM Package& Transfer
1
+
name: "π¦ OCM: Package, Release & Transfer"
2
2
3
3
run-name: >-
4
4
${{ github.event_name == 'workflow_dispatch'
@@ -16,23 +16,12 @@ on:
16
16
description: 'The version to set/publish the OCM packages as. E.g., "1.2.3". If not provided, the version will be auto-incremented based on the latest existing tag.'
17
17
required: false
18
18
type: string
19
-
# To ensure this workflow only runs after successful PR checks via "Build and Verify" workflow, you must:
20
-
# - block direct pushes to main by enabling branch protection rules
21
-
# - require "Build and Verify" workflow to pass before merging and uncomment the 'push' trigger below.
22
-
# This way we can be sure that all changes go through the PR process.
23
19
push:
24
20
branches:
25
21
- main
26
22
paths:
27
23
- "**/helmfile/**"
28
24
- "**/component-constructor.yaml"
29
-
# Alternatively, disable the 'push' trigger and use 'workflow_run' to ensure this workflow is triggered by the "Build and Verify" workflow.
Copy file name to clipboardExpand all lines: README.md
+29-39Lines changed: 29 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,21 +167,34 @@ flowchart TB
167
167
168
168
169
169
### π Open Component Model Pipeline
170
-
A Github Workflow [`.github/workflows/ocm-component-check.yml`](./.github/workflows/ocm-component-check.yml) is used to find, package and transfer all `./ocm/**/component-constructor.yaml` to an an OCI repository.
170
+
171
+
Two GitHub Workflows manage the OCM component lifecycle:
172
+
173
+
1.**[π OCM: Build & Verify](./.github/workflows/build_verify.yml)** - Runs on pull requests to validate OCM components
174
+
2.**[π¦ OCM: Package, Release & Transfer](./.github/workflows/package_transfer.yaml)** - Packages and publishes OCM components on push to main or manual dispatch
175
+
176
+
These workflows find, package, and transfer all `./ocm/**/component-constructor.yaml` to an OCI repository (ghcr.io).
171
177
172
178
```mermaid
173
179
sequenceDiagram
180
+
autonumber
174
181
participant Dev as π¨βπ» Developer
175
182
participant GH as π GitHub
176
-
participant GithubWorkflow as βοΈ Github Workflow
183
+
participant BuildVerify as π OCM: Build & Verify
184
+
participant PackageTransfer as π¦ OCM: Package, Release & Transfer
185
+
participant Version as π·οΈ Version Management
177
186
participant OCM as π¦ OCM
178
-
participant JFrog as π¦ JFrog
179
-
180
-
Dev->>GH: π€ Push Code
181
-
GH->>GithubWorkflow: π Trigger Build
182
-
GithubWorkflow->>OCM: π¦ Create Component
183
-
OCM->>JFrog: π― Transfer Artifacts
184
-
JFrog-->>Dev: β Build Complete
187
+
participant Registry as π¦ OCI Registry
188
+
Dev->>GH: π€ Push PR
189
+
GH->>BuildVerify: π Triggers on PR
190
+
BuildVerify->>GH: π¦ Build & Verify
191
+
Dev->>GH: π Merge to main
192
+
GH->>PackageTransfer: π Triggers on push
193
+
PackageTransfer->>Version: π·οΈ Get/Bump Version
194
+
Version-->>PackageTransfer: β Version Ready
195
+
PackageTransfer->>OCM: π¦ Create & Transfer Components
participant PackageTransfer as βοΈ Package & Transfer
257
-
participant Version as π·οΈ Version Management
258
-
participant OCM as π¦ OCM
259
-
participant Registry as π¦ OCI Registry
260
-
Dev->>GH: π€ Push PR
261
-
GH->>BuildVerify: π Triggers on PR
262
-
BuildVerify->>GH: π¦ Build & Verify
263
-
Dev->>GH: π Merge to main
264
-
GH->>PackageTransfer: π Triggers on push
265
-
PackageTransfer->>Version: π·οΈ Get/Bump Version
266
-
Version-->>PackageTransfer: β Version Ready
267
-
PackageTransfer->>OCM: π¦ Create & Transfer Components
268
-
OCM->>Registry: π― Transfer Artifacts
269
-
Registry-->>Dev: β Build Complete
270
-
```
271
-
272
263
##### `build_verify.yml`
273
-
The Build and Verify workflow [`.github/workflows/build_verify.yml`](./.github/workflows/build_verify.yml) runs on pull requests and:
264
+
The "π OCM: Build & Verify" workflow [`.github/workflows/build_verify.yml`](./.github/workflows/build_verify.yml) runs on pull requests and:
274
265
- Verifies OCM component constructors
275
266
- Validates the overall build process
276
267
277
268
##### `package_transfer.yaml`
278
-
The OCM Package& Transfer workflow [`.github/workflows/package_transfer.yaml`](./.github/workflows/package_transfer.yaml) is triggered on pushes to main branch or manual dispatch and:
269
+
The "π¦ OCM: Package, Release & Transfer" workflow [`.github/workflows/package_transfer.yaml`](./.github/workflows/package_transfer.yaml) is triggered on pushes to main branch or manual dispatch and:
279
270
- Packages all OCM components defined in `./ocm/**/component-constructor.yaml`
280
271
- Transfers components to OCI repository (ghcr.io)
281
-
- Publishes ConfigMaps as OCI artifacts
282
272
283
273
##### `re-find-constructors.yml`
284
274
A reusable workflow that scans the repository to find all `component-constructor.yaml` files. This workflow:
0 commit comments