Github Action now outputs Deployment ID and Deployment URL

CD-as-a-ServiceImprovement
undefined
undefined

You can now fetch the Deployment ID and the Deployment URL as outputs from the deployment step of your GitHub Action. You can use these outputs to further simplify your deployment process. Add the Deployment URL as a comment to the relevant PR or the commit. Additionally, if you'd like for the GitHub Action to wait until the deployment is finished, you can pass the waitForDeployment:true flag as an argument to the GitHub Action.

The following snippet uses the outputs from the deployment step and feeds them into the next step:

      - name: Deployment
        id: armory
        uses: armory/cli-deploy-action@main
        with:
          clientId: ${{ secrets.CDAAS_CLIENT_ID }}  
          clientSecret:  ${{ secrets.CDAAS_CLIENT_SECRET }} 
          path-to-file: "/deploy.yml"
          waitForDeployment: false
      - name: echo-ID
        uses: peter-evans/commit-comment@v2
        with:
          sha: ${{github.sha}}
          body: |
            Deployment URL - ${{steps.armory.outputs.LINK}}
            Deployment ID - ${{steps.armory.outputs.DEPLOYMENT_ID}}
Armory logo

Sep

15

New on the deployment graph: Deployment triggers with source context!

CD-as-a-ServiceFeature