Skip to content

Release - Standard Release #109

Release - Standard Release

Release - Standard Release #109

Workflow file for this run

---
name: Release
run-name: Release - ${{ inputs.release_mode }}
on:
workflow_dispatch:
inputs:
release_mode:
description: "Release Mode"
default: "Standard Release"
type: choice
options:
- Standard Release
- Dry Run
jobs:
release:
name: Release Helm chart
runs-on: ubuntu-22.04
environment: Production
permissions:
actions: read
contents: write
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
ref: main
- name: Login to Azure - CI Subscription
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
with:
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: Retrieve secrets
id: retrieve-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: "bitwarden-ci"
secrets: "github-gpg-private-key, github-gpg-private-key-passphrase"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key }}
passphrase: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Setup git
run: |
git config --local user.email "[email protected]"
git config --local user.name "bitwarden-devops-bot"
- name: Set up Helm
uses: Azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
with:
version: v3.13.1
- name: Download Helm chart artifact
uses: bitwarden/gh-actions/download-artifacts@main
with:
branch: main
path: .cr-release-packages
workflow: build.yml
workflow_conclusion: success
- name: Release Helm chart
if: ${{ github.event.inputs.release_mode != 'Dry Run' }}
env:
CR_GENERATE_RELEASE_NOTES: true
CR_MAKE_RELEASE_LATEST: true
CR_SKIP_EXISTING: true
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
with:
skip_packaging: true