Skip to content

Commit

Permalink
Add descriptions to deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-petko committed Jun 15, 2024
1 parent 812dfa3 commit b5c5ea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ jobs:

- name: Set Initial GitHub Deployment Status
if: ${{ env.DEPLOY_TO_NOMAD == 'true' && env.NOMAD_ADDR && steps.image.outcome == 'success' }}
uses: chrnorm/deployment-action@v2
uses: chrnorm/deployment-action@v2.0.7
id: deployment
continue-on-error: true
with:
token: "${{ github.token }}"
environment: ${{ env.NOMAD_ENVIRONMENT }}
environment-url: "${{ env.NOMAD_ADDR }}/ui/jobs/${{ env.NOMAD_JOB_NAME }}"
description: "Version: ${{ steps.version.outputs.version }}"

- name: Deploy to Nomad
if: ${{ env.DEPLOY_TO_NOMAD == 'true' && env.NOMAD_ADDR && steps.image.outcome == 'success' }}
Expand Down Expand Up @@ -254,6 +255,7 @@ jobs:
token: "${{ github.token }}"
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
environment-url: "${{ steps.deployment.outputs.environment_url }}"
description: "Version: ${{ steps.version.outputs.version }}"

# If the "deploy" step fails, the deployment status will be set to "failure"
# If the "deploy" step succeeds, the deployment status will be set to "success"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
token: "${{ github.token }}"
environment: ${{ env.NOMAD_ENVIRONMENT }}
environment-url: "${{ env.NOMAD_ADDR }}/ui/jobs/${{ env.NOMAD_JOB_NAME }}"
description: "Version: ${{ env.IMAGE_TAG }}"

- name: Deploy to Nomad
env:
Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:
token: "${{ github.token }}"
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
environment-url: "${{ steps.deployment.outputs.environment_url }}"
description: "Version: ${{ env.IMAGE_TAG }}"

# If the "deploy" step fails, the deployment status will be set to "failure"
# If the "deploy" step succeeds, the deployment status will be set to "success"
Expand Down

0 comments on commit b5c5ea6

Please sign in to comment.