From b5c5ea6dc097faffcf2a6b6c3d534dce6ac79642 Mon Sep 17 00:00:00 2001 From: Nikita Petko Date: Sun, 16 Jun 2024 00:36:50 +0100 Subject: [PATCH] Add descriptions to deployments --- .github/workflows/build.yml | 4 +++- .github/workflows/deploy.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1471af67..cc91afa8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' }} @@ -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" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9abdc36e..cb240e22 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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"