1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

[DEVOPS-1501] Build and Deploy Web Vault for USDEV (DevTest) (#7309)

* Add usdev config

* add command to build usdev to package

* Add usdev to build

* Add usdev to web deploy workflow

* Fix

* Fix

* Fix
This commit is contained in:
Michał Chęciński 2023-12-21 17:10:31 +01:00 committed by GitHub
parent 07d224d6bc
commit 53e4127ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -97,6 +97,8 @@ jobs:
npm_command: "build:bit:euprd" npm_command: "build:bit:euprd"
- name: "cloud-euqa" - name: "cloud-euqa"
npm_command: "build:bit:euqa" npm_command: "build:bit:euqa"
- name: "cloud-usdev"
npm_command: "build:bit:usdev"
steps: steps:
- name: Checkout repo - name: Checkout repo

View File

@ -14,6 +14,7 @@ on:
- EUQA - EUQA
- USPROD - USPROD
- EUPROD - EUPROD
- USDEV
branch-or-tag: branch-or-tag:
description: "Branch or Tag name to deploy (examples: 'main', 'feature/sm', 'web-v2023.12.0')" description: "Branch or Tag name to deploy (examples: 'main', 'feature/sm', 'web-v2023.12.0')"
type: string type: string
@ -80,6 +81,13 @@ jobs:
echo "environment-name=Web Vault - EU Production Cloud" >> $GITHUB_OUTPUT echo "environment-name=Web Vault - EU Production Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.bitwarden.eu" >> $GITHUB_OUTPUT echo "environment-url=http://vault.bitwarden.eu" >> $GITHUB_OUTPUT
;; ;;
"USDEV")
echo "azure-login-creds=AZURE_KV_US_DEV_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=webvault-eastus-dev" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-usdev.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - US Development Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.$ENV_NAME_LOWER.bitwarden.pw" >> $GITHUB_OUTPUT
;;
esac esac
approval: approval:
@ -97,7 +105,7 @@ jobs:
- approval - approval
- setup - setup
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: always() if: ${{ always() && contains( inputs.environment , 'QA' ) }}
outputs: outputs:
channel_id: ${{ steps.slack-message.outputs.channel_id }} channel_id: ${{ steps.slack-message.outputs.channel_id }}
ts: ${{ steps.slack-message.outputs.ts }} ts: ${{ steps.slack-message.outputs.ts }}
@ -162,7 +170,6 @@ jobs:
- setup - setup
- artifact-check - artifact-check
- approval - approval
- notify-start
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
env: env:
_ENVIRONMENT: ${{ needs.setup.outputs.environment }} _ENVIRONMENT: ${{ needs.setup.outputs.environment }}
@ -244,7 +251,7 @@ jobs:
notify: notify:
name: Notify Slack with result name: Notify Slack with result
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: always() if: ${{ always() && contains( inputs.environment , 'QA' ) }}
needs: needs:
- notify-start - notify-start
- azure-deploy - azure-deploy

View File

@ -0,0 +1,11 @@
{
"urls": {
"icons": "https://icons.usdev.bitwarden.pw",
"notifications": "https://notifications.usdev.bitwarden.pw",
"scim": "https://scim.usdev.bitwarden.pw"
},
"flags": {
"secretsManager": true,
"showPasswordless": true
}
}

View File

@ -12,6 +12,7 @@
"build:bit:qa": "cross-env NODE_ENV=production ENV=qa npm run build:bit", "build:bit:qa": "cross-env NODE_ENV=production ENV=qa npm run build:bit",
"build:bit:euprd": "cross-env NODE_ENV=production ENV=euprd npm run build:bit", "build:bit:euprd": "cross-env NODE_ENV=production ENV=euprd npm run build:bit",
"build:bit:euqa": "cross-env NODE_ENV=production ENV=euqa npm run build:bit", "build:bit:euqa": "cross-env NODE_ENV=production ENV=euqa npm run build:bit",
"build:bit:usdev": "cross-env NODE_ENV=production ENV=usdev npm run build:bit",
"build:bit:cloud": "cross-env NODE_ENV=production ENV=cloud npm run build:bit", "build:bit:cloud": "cross-env NODE_ENV=production ENV=cloud npm run build:bit",
"build:oss:selfhost:watch": "cross-env ENV=selfhosted npm run build:oss:watch", "build:oss:selfhost:watch": "cross-env ENV=selfhosted npm run build:oss:watch",
"build:bit:selfhost:watch": "cross-env ENV=selfhosted npm run build:bit:watch", "build:bit:selfhost:watch": "cross-env ENV=selfhosted npm run build:bit:watch",