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@deploy-request
38+ with :
39+ template-repository-name : ' lambda-feedback/evaluation-function-boilerplate-python'
40+ build-file : " app/Dockerfile"
41+ build-context : " ./app"
42+ environment : " production"
43+ version-bump : ${{ inputs.version-bump }}
44+ branch : ${{ inputs.branch }}
45+ run-database-tests : false
46+ seed : ${{ inputs.seed }}
47+ request_delay : ${{ inputs.request_delay }}
48+ max_concurrency : ${{ inputs.max_concurrency }}
49+
50+ secrets :
51+ aws-key-id : ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }}
52+ aws-secret-key : ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}}
53+ function-admin-api-key : ${{ secrets.FUNCTION_ADMIN_API_KEY}}
54+ gcp_credentials : ${{ secrets.GCP_DEPLOY }}
55+ TEST_API_ENDPOINT : ${{ secrets.TEST_API_ENDPOINT }}
56+ DB_USER : ${{ secrets.DB_USER }}
57+ DB_PASSWORD : ${{ secrets.DB_PASSWORD }}
58+ DB_HOST : ${{ secrets.DB_HOST }}
59+ DB_PORT : ${{ secrets.DB_PORT }}
60+ DB_NAME : ${{ secrets.DB_NAME }}
61+ GCP_DB_CREDS : ${{ secrets.GCP_DB_CREDS }}
62+ GCP_PROJECT_ID : ${{ secrets.GCP_PROJECT_ID }}
0 commit comments