1+ name : Deploy to Production
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version-bump :
7+ description : ' Version bump type'
8+ required : true
9+ type : choice
10+ options :
11+ - patch
12+ - minor
13+ - major
14+ default : patch
15+ branch :
16+ description : ' Branch to release from'
17+ required : true
18+ type : string
19+ default : ' main'
20+ seed :
21+ description : ' Random seed for reproducible sampling (float in [-1.0, 1.0]). Leave blank to auto-generate.'
22+ required : false
23+ type : string
24+ default : ' '
25+ request_delay :
26+ description : ' Delay (seconds) between dispatching requests'
27+ required : false
28+ type : string
29+ default : ' 0'
30+ max_concurrency :
31+ description : ' Max concurrent requests (lower for GPT-backed functions)'
32+ required : false
33+ type : string
34+ default : ' 5'
35+ jobs :
36+ deploy :
37+ uses : lambda-feedback/evaluation-function-workflows/.github/workflows/deploy.yml@main
38+ with :
39+ template-repository-name : ' lambda-feedback/evaluation-function-boilerplate-python'
40+ environment : " production"
41+ version-bump : ${{ inputs.version-bump }}
42+ branch : ${{ inputs.branch }}
43+ run-database-tests : false
44+ seed : ${{ inputs.seed }}
45+ request_delay : ${{ inputs.request_delay }}
46+ max_concurrency : ${{ inputs.max_concurrency }}
47+
48+ secrets :
49+ aws-key-id : ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }}
50+ aws-secret-key : ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}}
51+ function-admin-api-key : ${{ secrets.FUNCTION_ADMIN_API_KEY}}
52+ gcp_credentials : ${{ secrets.GCP_DEPLOY }}
53+ TEST_API_ENDPOINT : ${{ secrets.TEST_API_ENDPOINT }}
54+ DB_USER : ${{ secrets.DB_USER }}
55+ DB_PASSWORD : ${{ secrets.DB_PASSWORD }}
56+ DB_HOST : ${{ secrets.DB_HOST }}
57+ DB_PORT : ${{ secrets.DB_PORT }}
58+ DB_NAME : ${{ secrets.DB_NAME }}
59+ GCP_DB_CREDS : ${{ secrets.GCP_DB_CREDS }}
60+ GCP_PROJECT_ID : ${{ secrets.GCP_PROJECT_ID }}
0 commit comments