[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:
parent
07d224d6bc
commit
53e4127ab8
|
@ -97,6 +97,8 @@ jobs:
|
|||
npm_command: "build:bit:euprd"
|
||||
- name: "cloud-euqa"
|
||||
npm_command: "build:bit:euqa"
|
||||
- name: "cloud-usdev"
|
||||
npm_command: "build:bit:usdev"
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
|
|
|
@ -14,6 +14,7 @@ on:
|
|||
- EUQA
|
||||
- USPROD
|
||||
- EUPROD
|
||||
- USDEV
|
||||
branch-or-tag:
|
||||
description: "Branch or Tag name to deploy (examples: 'main', 'feature/sm', 'web-v2023.12.0')"
|
||||
type: string
|
||||
|
@ -80,6 +81,13 @@ jobs:
|
|||
echo "environment-name=Web Vault - EU Production Cloud" >> $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
|
||||
|
||||
approval:
|
||||
|
@ -97,7 +105,7 @@ jobs:
|
|||
- approval
|
||||
- setup
|
||||
runs-on: ubuntu-22.04
|
||||
if: always()
|
||||
if: ${{ always() && contains( inputs.environment , 'QA' ) }}
|
||||
outputs:
|
||||
channel_id: ${{ steps.slack-message.outputs.channel_id }}
|
||||
ts: ${{ steps.slack-message.outputs.ts }}
|
||||
|
@ -162,7 +170,6 @@ jobs:
|
|||
- setup
|
||||
- artifact-check
|
||||
- approval
|
||||
- notify-start
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
_ENVIRONMENT: ${{ needs.setup.outputs.environment }}
|
||||
|
@ -244,7 +251,7 @@ jobs:
|
|||
notify:
|
||||
name: Notify Slack with result
|
||||
runs-on: ubuntu-22.04
|
||||
if: always()
|
||||
if: ${{ always() && contains( inputs.environment , 'QA' ) }}
|
||||
needs:
|
||||
- notify-start
|
||||
- azure-deploy
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@
|
|||
"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: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: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",
|
||||
|
|
Loading…
Reference in New Issue