generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.19 KB
/
artifacthub-repo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: artifacthub-metadata
on:
push:
branches:
- main
paths:
- "artifacthub-repo.yml"
- ".github/workflows/artifacthub-repo.yml"
workflow_dispatch: # allow manually triggering builds
concurrency:
# only run one build at a time
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
artifacthub-repo-metadata:
name: Update artifacthub repo metadata
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
# clones user's repo
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@7ca345011ac4304463197fac0e56eab1bc7e6af0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup ORAS
uses: oras-project/setup-oras@v1
- run: oras version
# TODO: remove hardcoded values here
- run: oras push ghcr.io/detiber/beardy-os:artifacthub.io --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml