Release - Standard Release #75
Workflow file for this run
This file contains 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: 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Login to Azure - CI Subscription | |
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7 | |
with: | |
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} | |
- name: Retrieve secrets | |
id: retrieve-secrets | |
uses: bitwarden/gh-actions/get-keyvault-secrets@master | |
with: | |
keyvault: "bitwarden-ci" | |
secrets: "github-gpg-private-key, github-gpg-private-key-passphrase" | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.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@master | |
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 |