Helm OCI #586
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/[email protected] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: appany/[email protected] | |
| 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 |