Skip to content

Commit

Permalink
fix(ci): publish artifacthub files in a dedicated branch.
Browse files Browse the repository at this point in the history
Kubewarden policies should published the ArtifactHub files in a
dedicated branch to avoid timing issues with the cronjob which check for
new releases. Therefore, we avoid the issue of having the policy missing
the "signed" flag in the ArtifactHub website.

Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
  • Loading branch information
jvanz committed Mar 15, 2024
1 parent 29a92d2 commit 06f37c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,17 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
oci-target: ghcr.io/${{ github.repository_owner }}/policies/container-resources

push-artifacthub:
# skip when releasing :latest from main, versions will not match
if: startsWith(github.ref, 'refs/tags/v')
needs: release
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
runs-on: ubuntu-latest
steps:
-
name: Push artifacthub files to artifacthub branch
uses: kubewarden/github-actions/push-artifacthub@v3.1.18

0 comments on commit 06f37c1

Please sign in to comment.