Skip to content

Commit 846863b

Browse files
committed
Refactored deploy to staging-deploy and created production deploy workflow
1 parent 5a8c3ab commit 846863b

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Production Version to Lambda Feedback
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+
jobs:
21+
deploy:
22+
uses: lambda-feedback/evaluation-function-workflows/.github/workflows/staging-deploy.yml@deploy-request
23+
with:
24+
template-repository-name: 'lambda-feedback/evaluation-function-boilerplate-wolfram'
25+
build-platforms: 'gcp'
26+
environment: "production"
27+
version-bump: ${{ inputs.version-bump }}
28+
branch: ${{ inputs.branch }}
29+
secrets:
30+
aws-key-id: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }}
31+
aws-secret-key: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}}
32+
function-admin-api-key: ${{ secrets.FUNCTION_ADMIN_API_KEY}}
33+
gcp_credentials: ${{ secrets.GCP_DEPLOY }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
template-repository-name: 'lambda-feedback/evaluation-function-boilerplate-wolfram'
1515
build-platforms: 'gcp'
16+
environment: "staging"
1617
secrets:
1718
aws-key-id: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }}
1819
aws-secret-key: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Which gives the response:
6161
```bash
6262
.github/workflows/
6363
build.yml # builds the public evaluation function image
64-
deploy.yml # deploys the evaluation function to Lambda Feedback
64+
staging-deploy.yml # deploys the evaluation function to Lambda Feedback
6565

6666
evaluation_function.wl # evaluation function source code
6767

@@ -132,7 +132,7 @@ This section guides you through the deployment process of the evaluation functio
132132

133133
Deploying the evaluation function to Lambda Feedback is simple and straightforward, as long as the repository is within the [Lambda Feedback organization](https://github.com/lambda-feedback).
134134

135-
After configuring the repository, a [GitHub Actions workflow](.github/workflows/deploy.yml) will automatically build and deploy the evaluation function to Lambda Feedback as soon as changes are pushed to the main branch of the repository.
135+
After configuring the repository, a [GitHub Actions workflow](.github/workflows/staging-deploy.yml) will automatically build and deploy the evaluation function to Lambda Feedback as soon as changes are pushed to the main branch of the repository.
136136

137137
**Configuration**
138138

0 commit comments

Comments
 (0)