mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Add lightstep gh action
This commit is contained in:
parent
981d110bbf
commit
baedf8c99d
2 changed files with 38 additions and 0 deletions
29
.github/workflows/lightstep.yml
vendored
Normal file
29
.github/workflows/lightstep.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
name: Verify Pre-Deploy Status
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Checkout repo
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Run checks
|
||||||
|
- name: Lightstep Pre-Deploy Check
|
||||||
|
uses: lightstep/lightstep-action-predeploy@v0.1.4
|
||||||
|
id: lightstep-predeploy
|
||||||
|
with:
|
||||||
|
lightstep_api_key: ${{ secrets.LIGHTSTEP_API_KEY }}
|
||||||
|
pagerduty_api_token: ${ { secrets.PAGERDUTY_API_TOKEN } }
|
||||||
|
|
||||||
|
# Output status as a comment
|
||||||
|
- name: Add a Comment
|
||||||
|
uses: unsplash/comment-on-pr@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
msg: ${{ steps.lightstep-predeploy.outputs.lightstep_predeploy_md }}
|
||||||
|
check_for_duplicate_msg: true
|
||||||
9
.lightstep.yml
Normal file
9
.lightstep.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
organization: Puppet Inc
|
||||||
|
project: puppet-inc-prod
|
||||||
|
conditions:
|
||||||
|
# API /status error >0%
|
||||||
|
- SZcJVQfy
|
||||||
|
integrations:
|
||||||
|
pagerduty:
|
||||||
|
# VMPooler service
|
||||||
|
service: P714ID4
|
||||||
Loading…
Add table
Add a link
Reference in a new issue