mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 07:45:18 +00:00
post metrics for ci runs
This commit is contained in:
parent
ebd4571ac8
commit
51cdc91782
6
.github/workflows/ci-pr.yml
vendored
6
.github/workflows/ci-pr.yml
vendored
@ -9,3 +9,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
default:
|
default:
|
||||||
uses: ./.github/workflows/ci-default.yml
|
uses: ./.github/workflows/ci-default.yml
|
||||||
|
post-pipeline-metrics:
|
||||||
|
uses: ./.github/workflows/metric-pipeline.yml
|
||||||
|
if: always() # always run so we metric failures and successes
|
||||||
|
with:
|
||||||
|
aws-region: us-east-1
|
||||||
|
secrets: inherit
|
||||||
|
30
.github/workflows/metric-pipeline.yml
vendored
Normal file
30
.github/workflows/metric-pipeline.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Metric Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
aws-region:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
CI_AWS_KEY_ID:
|
||||||
|
required: true
|
||||||
|
CI_AWS_KEY_SECRET:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
metric-pipeline-result:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Make sure the secrets are stored in you repo settings
|
||||||
|
- name: Configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.CI_AWS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.CI_AWS_KEY_SECRET }}
|
||||||
|
aws-region: ${{ inputs.aws-region }}
|
||||||
|
if: always() # Setup credentials even if the workflow failed
|
||||||
|
- name: Log Build
|
||||||
|
# replace TAG by the latest tag in the repository
|
||||||
|
uses: ros-tooling/action-cloudwatch-metrics@0.0.5
|
||||||
|
if: always() # Need to run to log the workflow failure
|
Loading…
Reference in New Issue
Block a user