mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[ENG 71] Add calls to Github Deployments API to allow Jira integration on Deployments (#3164)
* [ENG-71] updated release-web.yml to add deployment updates. * [ENG-71] Added newline at the end of the file * [ENG-71] Changed environment name. * [ENG-71] Changed branch name again. * Fixed error in brackets. * Added release version * [ENG-71] Updated all the other scripts to track deployments. * [ENG-71] added channel * [ENG-71] Added newline * [ENG-71] Removed separate deployments for choco and snap * [ENG-71] Removed separate deployments * [ENG-71] Added newline * [ENG-71] refined messages * [ENG-71] Changed to separate out environment and description. * [ENG-71] more changes to sepearate environment from description * Job cleanup * Job cleanup * [ENG-71] More job cleanup * [ENG-71] Updated to use commit instead of v2. * [ENG-7] Fixed error referencing release-version Co-authored-by: Todd Martin <>
This commit is contained in:
35
.github/workflows/release-qa-web.yml
vendored
35
.github/workflows/release-qa-web.yml
vendored
@@ -72,6 +72,23 @@ jobs:
|
||||
name: Deploy Web Vault to QA CloudFlare Pages branch
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Create GitHub deployment
|
||||
uses: chrnorm/deployment-action@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48
|
||||
id: deployment
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
environment-url: http://vault.qa.bitwarden.pw
|
||||
environment: 'Web Vault - QA'
|
||||
description: 'Deployment from branch ${{ github.ref_name }}'
|
||||
|
||||
- name: Update deployment status to In Progress
|
||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
environment-url: http://vault.qa.bitwarden.pw
|
||||
state: 'in_progress'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||
|
||||
@@ -118,3 +135,21 @@ jobs:
|
||||
echo "No changes to commit!";
|
||||
fi
|
||||
working-directory: deployment
|
||||
|
||||
- name: Update deployment status to Success
|
||||
if: success()
|
||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
environment-url: http://vault.qa.bitwarden.pw
|
||||
state: 'success'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
- name: Update deployment status to Failure
|
||||
if: failure()
|
||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
environment-url: http://vault.qa.bitwarden.pw
|
||||
state: 'failure'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
Reference in New Issue
Block a user