-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sts/proto_stream_node_append_only
- Loading branch information
Showing
44 changed files
with
1,263 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Override `template.yml` with contents in this file. Please run `generate.sh` to update the corresponding files. | ||
|
||
name: CI (main-cronjob) | ||
|
||
on: | ||
# Triggers the workflow everyday 00:00 | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
start-runner-c: | ||
name: ec2-start-c | ||
runs-on: ubuntu-latest | ||
outputs: | ||
label: ${{ steps.start-ec2-runner.outputs.label }} | ||
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
- name: Start EC2 runner | ||
id: start-ec2-runner | ||
uses: machulav/ec2-github-runner@v2 | ||
with: | ||
mode: start | ||
github-token: ${{ secrets.WUTAO_PAT }} | ||
ec2-image-id: ami-05a99cf0eb100c377 # github-actions (60gb gp3 ssd) | ||
ec2-instance-type: c5.4xlarge # 16 vCPU, 32 GB Memory, EBS | ||
subnet-id: subnet-59743123 # default | ||
security-group-id: sg-9ec32bfe # default (could have security issues) | ||
|
||
stop-runner-c: | ||
name: ec2-stop-c | ||
needs: | ||
- start-runner-c | ||
- end-to-end-risedev-release | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs | ||
steps: | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
- name: Stop EC2 runner C | ||
uses: machulav/ec2-github-runner@v2 | ||
with: | ||
mode: stop | ||
github-token: ${{ secrets.WUTAO_PAT }} | ||
label: ${{ needs.start-runner-c.outputs.label }} | ||
ec2-instance-id: ${{ needs.start-runner-c.outputs.ec2-instance-id }} | ||
if: ${{ always() }} | ||
|
Oops, something went wrong.