Skip to content

Commit 78381b0

Browse files
committed
chore: publish artifacthub repo to oci
1 parent c096ea4 commit 78381b0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/artifacthub.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: artifacthub repo metadata
2+
3+
on:
4+
push:
5+
6+
concurrency:
7+
group: artifacthub
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
jobs:
15+
artifacthub:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
21+
- uses: oras-project/setup-oras@8d34698a59f5ffe24821f0b48ab62a3de8b64b20 # v1.2.3
22+
23+
- name: Login to GitHub Container Registry
24+
run: |
25+
echo ${{ secrets.GITHUB_TOKEN }} | oras login -u ${{ github.actor }} --password-stdin ghcr.io
26+
27+
- name: artifacthub repo meta to GHCR
28+
run: |
29+
oras push \
30+
ghcr.io/${{ github.repository_owner }}/charts/renovate:artifacthub.io \
31+
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
32+
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml

0 commit comments

Comments
 (0)