mirror of
https://github.com/bitwarden/server.git
synced 2025-04-18 11:38:15 -05:00
Changes to clean up deployment creation in workflow jobs. (#2160)
Co-authored-by: Todd Martin <>
This commit is contained in:
parent
dad666fc96
commit
524ceb622c
12
.github/workflows/qa-deploy.yml
vendored
12
.github/workflows/qa-deploy.yml
vendored
@ -95,17 +95,11 @@ jobs:
|
|||||||
id: deployment
|
id: deployment
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
initial-status: 'in_progress'
|
||||||
environment: 'Server ${{ matrix.name }} - QA'
|
environment: 'Server ${{ matrix.name }} - QA'
|
||||||
task: 'deploy'
|
task: 'deploy'
|
||||||
description: 'Deploy from ${{ env.branch_name }} branch'
|
description: 'Deploy from ${{ env.branch_name }} branch'
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to In Progress
|
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
|
||||||
with:
|
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
state: 'in_progress'
|
|
||||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
|
||||||
|
|
||||||
- name: Download latest ${{ matrix.name }} asset from ${{ env.branch_name }}
|
- name: Download latest ${{ matrix.name }} asset from ${{ env.branch_name }}
|
||||||
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
||||||
env:
|
env:
|
||||||
@ -155,7 +149,7 @@ jobs:
|
|||||||
--resource-group $AZURE_RESOURCE_GROUP
|
--resource-group $AZURE_RESOURCE_GROUP
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to Success
|
- name: Update ${{ matrix.name }} deployment status to Success
|
||||||
if: success()
|
if: ${{ success() }}
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
@ -163,7 +157,7 @@ jobs:
|
|||||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to Failure
|
- name: Update ${{ matrix.name }} deployment status to Failure
|
||||||
if: failure()
|
if: ${{ failure() }}
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -80,17 +80,11 @@ jobs:
|
|||||||
id: deployment
|
id: deployment
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
initial-status: 'in_progress'
|
||||||
environment: 'Server ${{ matrix.name }} - Production'
|
environment: 'Server ${{ matrix.name }} - Production'
|
||||||
task: 'deploy'
|
task: 'deploy'
|
||||||
description: 'Deploy from ${{ needs.setup.outputs.branch-name }} branch'
|
description: 'Deploy from ${{ needs.setup.outputs.branch-name }} branch'
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to In Progress
|
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
|
||||||
with:
|
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
state: 'in_progress'
|
|
||||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
|
||||||
|
|
||||||
- name: Download latest Release ${{ matrix.name }} asset
|
- name: Download latest Release ${{ matrix.name }} asset
|
||||||
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
||||||
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
||||||
@ -156,7 +150,7 @@ jobs:
|
|||||||
az webapp start -n $WEBAPP_NAME -g $RESOURCE_GROUP -s staging
|
az webapp start -n $WEBAPP_NAME -g $RESOURCE_GROUP -s staging
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to Success
|
- name: Update ${{ matrix.name }} deployment status to Success
|
||||||
if: success()
|
if: ${{ success() }}
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
@ -164,7 +158,7 @@ jobs:
|
|||||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||||
|
|
||||||
- name: Update ${{ matrix.name }} deployment status to Failure
|
- name: Update ${{ matrix.name }} deployment status to Failure
|
||||||
if: failure()
|
if: ${{ failure() }}
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||||
with:
|
with:
|
||||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user