Browse Source

BRE-533 - Remove Update Links workflow (#336)

pull/338/head
Vince Grassia 12 months ago committed by GitHub
parent
commit
7c170d6334
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      .github/workflows/release.yml
  2. 75
      .github/workflows/update-links.yml

15
.github/workflows/release.yml

@ -367,21 +367,6 @@ jobs: @@ -367,21 +367,6 @@ jobs:
keyvault: "bitwarden-ci"
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
- name: Trigger update-links workflow
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'bitwarden',
repo: 'self-host',
workflow_id: 'update-links.yml',
ref: 'main',
inputs: {
release_tag: v${{ github.event.inputs.release_version }}
}
});
- name: Trigger release-digital-ocean workflow
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:

75
.github/workflows/update-links.yml

@ -1,75 +0,0 @@ @@ -1,75 +0,0 @@
name: Update Links
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: "Release Tag"
required: true
jobs:
update-links:
name: Update Links
runs-on: ubuntu-22.04
steps:
- 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
env:
KEYVAULT: bitwarden-ci
SECRETS: |
rebrandly-apikey
run: |
for i in ${SECRETS//,/ }
do
VALUE=$(az keyvault secret show --vault-name $KEYVAULT --name $i --query value --output tsv)
echo "::add-mask::$VALUE"
echo "$i=$VALUE" >> $GITHUB_OUTPUT
done
- name: Set tag name
id: tag-name
run: |
if [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then
echo "value=${{ github.event.inputs.release_tag }}" >> $GITHUB_OUTPUT
else
echo "value=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT
fi
- name: Update Bitwarden Script PowerShell Link
uses: bitwarden/gh-actions/update-rebrandly-link@main
with:
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }}
domain: "go.btwrdn.co"
slashtag: "bw-ps"
destination: "https://github.com/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/bitwarden.ps1"
- name: Update Run Script PowerShell Link
uses: bitwarden/gh-actions/update-rebrandly-link@main
with:
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }}
domain: "go.btwrdn.co"
slashtag: "bw-ps-run"
destination: "https://github.com/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/run.ps1"
- name: Update Bitwarden Script Shell Link
uses: bitwarden/gh-actions/update-rebrandly-link@main
with:
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }}
domain: "go.btwrdn.co"
slashtag: "bw-sh"
destination: "https://github.com/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/bitwarden.sh"
- name: Update Run Script Shell Link
uses: bitwarden/gh-actions/update-rebrandly-link@main
with:
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }}
domain: "go.btwrdn.co"
slashtag: "bw-sh-run"
destination: "https://github.com/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/run.sh"
Loading…
Cancel
Save