Skip to content

[GHA] Update cosign installer #23

[GHA] Update cosign installer

[GHA] Update cosign installer #23

Workflow file for this run

name: Helm
on:
workflow_dispatch: {}
push:
tags: [ 'v*.*.*' ]
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Get Tag
id: tagName
uses: olegtarasov/[email protected]
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1
- name: Install YQ
uses: chrisdickinson/setup-yq@latest
with:
yq-version: v4.27.2
- name: Set Chart Version
run: |
if [ -n "${{ steps.tagName.outputs.tag }}" ]; then
yq -i '.version = "${{ steps.tagName.outputs.tag }}"' deploy/helm/nexus-oidc-proxy/Chart.yaml
yq -i '.appVersion = "${{ steps.tagName.outputs.tag }}"' deploy/helm/nexus-oidc-proxy/Chart.yaml
else
yq -i '.version = .version + "-'"${GITHUB_SHA}"'"' deploy/helm/nexus-oidc-proxy/Chart.yaml
yq -i '.appVersion = "'"${GITHUB_SHA}"'"' deploy/helm/nexus-oidc-proxy/Chart.yaml
fi
- name: Lint
run: |
helm lint deploy/helm/nexus-oidc-proxy
helm template deploy/helm/nexus-oidc-proxy
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: deploy/helm