This action emits a deploy event for service to OpsLevel.
Required The OpsLevel deploy integration url.
The service alias for the event - Default: <github_org_or_user_name>/<repository_name>
If the repository has an ./opslevel.yml file the service name will get pulled from it.
The description or release notes for the event - Default: ""
The environment for the event - Default: ""
The deploy number for the event - Default: ${GITHUB_RUN_NUMBER}
The deployer name who created the event - Default: ${GITHUB_ACTOR}
The deployer email who create the event - Default: ""
The deploy url that OpsLevel points to - Default: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
An identifier that can be used to deduplicate deployments - Default: ${GITHUB_RUN_ID}
Send deploy using Docker container if "true" - use OpsLevel CLI otherwise - Default: true
This action can be run using either Docker or the OpsLevel CLI, depending on the value of the use_docker input.
While both behave identically, this action will run using Docker by default - see ./with-docker. For Github workflows operating within intentional constraints, perhaps where building public Docker images is not an option, it may be preferable to use the OpsLevel CLI.
jobs:
deploy:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Report Deploy
uses: OpsLevel/report-deploy-github-action@v1.0.0
with:
integration_url: ${{ secrets.DEPLOY_INTEGRATION_URL }}
service: "my-service"
use_docker: "true"If you want to add the git commit author as the deployer
jobs:
deploy:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Deployer
id: deployer
run: |
DEPLOYER=$(git show -s --format='%ae')
echo "DEPLOYER=${DEPLOYER}" >> $GITHUB_OUTPUT
- name: Report Deploy
uses: OpsLevel/report-deploy-github-action@v1.0.0
with:
integration_url: ${{ secrets.DEPLOY_INTEGRATION_URL }}
service: "my-service"
deployer_email: ${{ steps.deployer.outputs.DEPLOYER }}
use_docker: "false"