-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88c8890
commit b2d8d5f
Showing
10 changed files
with
222 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Relay distributor | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: platform/relaydistributor | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: dev | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- run: nix-build ../platform.nix | ||
|
||
- name: Cache Dependencies | ||
id: cache-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
.yarn | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Deploy | ||
uses: cloudflare/[email protected] | ||
with: | ||
wranglerVersion: '3.19.0' | ||
apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} | ||
accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} | ||
workingDirectory: platform/relaydistributor | ||
command: publish | ||
secrets: | | ||
SECRET_RELAY_DISTRIBUTION_MAP | ||
env: | ||
SECRET_RELAY_DISTRIBUTION_MAP: ${{ secrets.SECRET_RELAY_DISTRIBUTION_MAP }} |
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,53 @@ | ||
name: Relay processor | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: platform/relayprocessor | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: dev | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- run: nix-build ../platform.nix | ||
|
||
- name: Cache Dependencies | ||
id: cache-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
.yarn | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Deploy | ||
uses: cloudflare/[email protected] | ||
with: | ||
wranglerVersion: '3.19.0' | ||
apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} | ||
accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} | ||
workingDirectory: platform/relayprocessor | ||
command: publish | ||
secrets: | | ||
SECRET_RELAY_DISTRIBUTION_MAP | ||
INTERNAL_RELAY_DISTRIBUTION_KEY | ||
env: | ||
SECRET_RELAY_DISTRIBUTION_MAP: ${{ secrets.SECRET_RELAY_DISTRIBUTION_MAP }} | ||
INTERNAL_RELAY_DISTRIBUTION_KEY: ${{secrets.INTERNAL_RELAY_DISTRIBUTION_KEY_DEV }} |
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,55 @@ | ||
name: Next Relay Processor | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
defaults: | ||
run: | ||
working-directory: platform/relayprocessor | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: next | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- run: nix-build ../platform.nix | ||
|
||
- name: Cache Dependencies | ||
id: cache-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
.yarn | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Deploy | ||
uses: cloudflare/[email protected] | ||
with: | ||
wranglerVersion: '3.19.0' | ||
apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} | ||
accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} | ||
workingDirectory: platform/relayprocessor | ||
command: publish --config wrangler.next.toml --env next | ||
environment: 'next' | ||
secrets: | | ||
SECRET_RELAY_DISTRIBUTION_MAP | ||
INTERNAL_RELAY_DISTRIBUTION_KEY | ||
env: | ||
SECRET_RELAY_DISTRIBUTION_MAP: ${{ secrets.SECRET_RELAY_DISTRIBUTION_MAP }} | ||
INTERNAL_RELAY_DISTRIBUTION_KEY: ${{secrets.INTERNAL_RELAY_DISTRIBUTION_KEY_TEST }} |
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,54 @@ | ||
name: Release Relay Processor | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
defaults: | ||
run: | ||
working-directory: platform/relayprocessor | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- run: nix-build ../platform.nix | ||
|
||
- name: Cache Dependencies | ||
id: cache-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
.yarn | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Deploy | ||
uses: cloudflare/[email protected] | ||
with: | ||
wranglerVersion: '3.19.0' | ||
apiToken: ${{ secrets.TOKEN_CLOUDFLARE_API }} | ||
accountId: ${{ secrets.INTERNAL_CLOUDFLARE_ACCOUNT_ID }} | ||
workingDirectory: platform/relayprocessor | ||
command: publish --config wrangler.current.toml --env current | ||
environment: 'current' | ||
secrets: | | ||
SECRET_RELAY_DISTRIBUTION_MAP | ||
INTERNAL_RELAY_DISTRIBUTION_KEY | ||
env: | ||
SECRET_RELAY_DISTRIBUTION_MAP: ${{ secrets.SECRET_RELAY_DISTRIBUTION_MAP }} | ||
INTERNAL_RELAY_DISTRIBUTION_KEY: ${{secrets.INTERNAL_RELAY_DISTRIBUTION_KEY_PROD }} |
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
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
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