Files
ess-helm/.github/workflows/artifact-hub.yml

43 lines
1.1 KiB
YAML

# Copyright 2025 New Vector Ltd
# Copyright 2025-2026 Element Creations Ltd
#
# SPDX-License-Identifier: AGPL-3.0-only
name: Artifact Hub Metadata
on:
push:
branches:
- main
workflow_dispatch:
jobs:
artifact-hub:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: oras-project/setup-oras@22ce207df3b08e061f537244349aac6ae1d214f6 # v1
- name: ORAS Login
env:
ORAS_USERNAME: ${{ github.actor }}
ORAS_PASSWORD: ${{ github.token }}
run: |
oras login ghcr.io -u "$ORAS_USERNAME" -p "$ORAS_PASSWORD"
- name: Push artifact-hub
env:
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
oras push \
"ghcr.io/${GITHUB_REPOSITORY}/matrix-stack:artifacthub.io" \
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
artifacthub-repo.yaml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml