-
-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (41 loc) · 1.31 KB
/
helm-oci.yml
File metadata and controls
44 lines (41 loc) · 1.31 KB
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
40
41
42
43
44
name: Helm OCI
on:
schedule:
- cron: "15 14 * * *"
push:
paths:
- "charts/**"
- ".github/workflows/helm-oci.yml"
branches: ["main", "stable"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
tag:
description: "Tag to publish (required for workflow_dispatch)"
required: true
jobs:
docker:
if: contains(github.ref, 'refs/tags/v') || contains(github.ref, 'refs/heads/stable') || github.event_name == 'workflow_dispatch'
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
# uses: appany/helm-oci-chart-releaser@v0.3.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: appany/helm-oci-chart-releaser@v0.3.0
with:
name: chisel-operator
repository: fyralabs/chisel-operator
tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
path: charts/chisel-operator
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
# update_dependencies: true