1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

DEVOPS-1427 - Update Deploy EU Prod Web Workflow (#5637)

This commit is contained in:
Vince Grassia 2023-06-20 14:42:29 -04:00 committed by GitHub
parent d4f292108f
commit ff18a5b905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 13 deletions

View File

@ -0,0 +1,47 @@
---
name: Deploy Web - EU Prod
on:
workflow_dispatch:
jobs:
azure-deploy:
name: Deploy to Azure
runs-on: ubuntu-22.04
env:
_WEB_ARTIFACT: "web-*-cloud-euprd.zip"
steps:
- name: Login to Azure - EU Subscription
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.6
with:
creds: ${{ secrets.AZURE_KV_EU_PRD_SERVICE_PRINCIPAL }}
- name: Retrieve Storage Account connection string
id: retrieve-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@c86ced0dc8c9daeecf057a6333e6f318db9c5a2b
with:
keyvault: webvault-westeurope-prod
secrets: "sa-bitwarden-web-vault-dev-key-temp"
- name: Download latest cloud asset
uses: bitwarden/gh-actions/download-artifacts@850faad0cf6c02a8c0dc46eddde2363fbd6c373a
with:
workflow: build-web.yml
path: apps/web
workflow_conclusion: success
branch: ${{ github.ref_name }}
artifacts: ${{ env._WEB_ARTIFACT }}
- name: Unzip build asset
working-directory: apps/web
run: unzip ${{ env._WEB_ARTIFACT }}
- name: Deploy to Azure Storage Account
working-directory: apps/web
run: |
az storage blob upload-batch --source "./build" \
--destination '$web' \
--account-name "bwwebvault1itgprod" \
--connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \
--overwrite \
--no-progress

View File

@ -1,13 +0,0 @@
---
name: Deploy Web - EU Prod - STUB
on:
workflow_dispatch:
jobs:
stub-job:
name: Stub Job
runs-on: ubuntu-22.04
steps:
- name: Stub Step
run: exit 0