-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In addition, add github workflow for releasing the scale test docker images which is a prerequisite for the scale test.
- Loading branch information
1 parent
cbb02e4
commit 2163e1d
Showing
14 changed files
with
624 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,44 @@ | ||
name: Build and Push Scale Test Docker Image | ||
on: | ||
push: | ||
paths: | ||
- 'packages/**' | ||
- 'tests/scaling/**' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
roles: [node, relay] | ||
|
||
name: Build and Push Scale Test Docker Image | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Login to Docker Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: rosen-bridge | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Docker Metadata action | ||
uses: docker/metadata-action@v5 | ||
id: meta | ||
tags: latest | ||
with: | ||
images: ghcr.io/rosen-bridge/scale-test${{matrix.role}} | ||
|
||
- name: Build and push ${{matrix.role}} | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: 'tests/scaling/src/${{matrix.role}}/Dockerfile' | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} |
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 @@ | ||
dist |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
# RoseNet scaling test | ||
|
||
## Table of contents | ||
|
||
- [Introduction](#introduction) | ||
- [Usage](#usage) | ||
|
||
## Introduction | ||
|
||
RoseNet scaling test | ||
|
||
## Usage | ||
|
||
You need to have [OpenTofu](https://opentofu.org/) installed. Then, after | ||
[passing required variables](https://opentofu.org/docs/language/values/variables/#assigning-values-to-root-module-variables) (defined in [`variables.tf`](./variables.tf)), | ||
run the following commands. It should complete with no errors. | ||
|
||
```bash | ||
tofu init | ||
tofu apply | ||
``` | ||
|
||
Finally run `tofu destroy` to destroy the infrastructure. |
Oops, something went wrong.