generated from aicoe-aiops/project-template
-
Notifications
You must be signed in to change notification settings - Fork 25
31 lines (31 loc) · 1.71 KB
/
predict-ttm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#We run this workflow on the base ocp-ci-analysis container image which contains dependencies neccesary to run these notebooks
name: Predict Time to Merge
# Controls when the workflow will run
on:
workflow_dispatch:
pull_request:
jobs:
pipeline:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: quay.io/aicoe/ocp-ci-analysis
steps:
- name: Predict Time to Merge
uses: redhat-et/time-to-merge-tool@v1
env:
AWS_ACCESS_KEY_ID: ${{ github.event.client_payload.AWS_ACCESS_KEY_ID || secrets.AWS_ACCESS_KEY_ID}}
GITHUB_REPO: ${{ github.event.client_payload.REPO || secrets.REPO }}
GITHUB_ORG: ${{ github.event.client_payload.ORG || secrets.ORG }}
S3_ENDPOINT_URL: ${{ github.event.client_payload.S3_ENDPOINT_URL || secrets.S3_ENDPOINT_URL }}
S3_BUCKET: ${{ github.event.client_payload.S3_BUCKET || secrets.S3_BUCKET }}
AWS_SECRET_ACCESS_KEY: ${{ github.event.client_payload.AWS_SECRET_ACCESS_KEY || secrets.AWS_SECRET_ACCESS_KEY }}
CEPH_BUCKET: ${{ github.event.client_payload.S3_BUCKET || secrets.S3_BUCKET }}
CEPH_BUCKET_PREFIX: ${{ github.event.client_payload.PREFIX|| secrets.CEPH_BUCKET_PREFIX }}
CEPH_KEY_ID: ${{ github.event.client_payload.AWS_ACCESS_KEY_ID || secrets.AWS_ACCESS_KEY_ID }}
CEPH_SECRET_KEY: ${{ github.event.client_payload.AWS_SECRET_ACCESS_KEY || secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN || secrets.ACCESS_TOKEN }}
# Setting mode by default as 0, this will only run inference mode and if defined as 1 will train and run inference.
MODE: 0
REMOTE: 1
ACTION: 1