Skip to content

Commit 1674a98

Browse files
committed
WIP Add OCM release workflow
1 parent b014784 commit 1674a98

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/release-ocm.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release OCM Component
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
ocm:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: docker/login-action@v3
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: open-component-model/ocm-setup-action@30210abb7373f34003cd50cdab77e23497afa6a7
23+
- run: ocm add components --create --file ocm/ctf ocm/component-constructor.yaml VERSION=${{ github.ref_name}}
24+
- run: ocm transfer ctf ocm/ctf ghcr.io/${{ github.repository_owner}}/ocm-dev

0 commit comments

Comments
 (0)