mirror of
https://github.com/bitwarden/server
synced 2025-12-25 04:33:26 +00:00
Update workflows with linter suggestions (#1562)
* Update workflows with linter suggestions * Update workflows with linter suggestions
This commit is contained in:
13
.github/workflows/qa-deploy.yml
vendored
13
.github/workflows/qa-deploy.yml
vendored
@@ -1,8 +1,9 @@
|
||||
---
|
||||
name: QA Deploy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
inputs:
|
||||
migrateDb:
|
||||
required: true
|
||||
default: "true"
|
||||
@@ -12,6 +13,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -154,13 +156,14 @@ jobs:
|
||||
for f in `ls -v ./*.sql`; do
|
||||
echo "Executing file: ${f}..."
|
||||
sqlcmd -S $MSSQL_HOST -d vault -U $MSSQL_USER -P $MSSQL_PASS -I -i $f
|
||||
done;
|
||||
done;
|
||||
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs:
|
||||
needs:
|
||||
- reset-db
|
||||
- update-db
|
||||
strategy:
|
||||
@@ -196,7 +199,7 @@ jobs:
|
||||
- name: Retrieve secrets
|
||||
id: retrieve-secrets
|
||||
env:
|
||||
VAULT_NAME: "bitwarden-qa-kv"
|
||||
VAULT_NAME: "bitwarden-qa-kv"
|
||||
run: |
|
||||
webapp_name=$(az keyvault secret show --vault-name $VAULT_NAME --name appservices-${{ steps.setup.outputs.name_lower }}-webapp-name --query value --output tsv)
|
||||
echo "::add-mask::$webapp_name"
|
||||
@@ -205,5 +208,5 @@ jobs:
|
||||
- name: Deploy App
|
||||
uses: azure/webapps-deploy@798e43877120eda6a2a690a4f212c545e586ae31
|
||||
with:
|
||||
app-name: ${{ steps.retrieve-secrets.outputs.webapp-name }}
|
||||
app-name: ${{ steps.retrieve-secrets.outputs.webapp-name }}
|
||||
package: ./${{ matrix.name }}.zip
|
||||
|
||||
Reference in New Issue
Block a user