forked from polkadot-cloud/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
A0-3351: Add dev env for dashbord
- Loading branch information
Showing
10 changed files
with
79 additions
and
60 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ inputs: | |
environment: | ||
type: choice | ||
options: | ||
- devnet | ||
- testnet | ||
- mainnet | ||
required: true | ||
|
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ inputs: | |
environment: | ||
type: choice | ||
options: | ||
- devnet | ||
- testnet | ||
- mainnet | ||
required: true | ||
|
@@ -25,7 +26,7 @@ runs: | |
repository: Cardinal-Cryptography/aleph-apps | ||
token: ${{ inputs.github_token }} | ||
path: "aleph-apps" | ||
ref: ${{ inputs.environment }} | ||
ref: ${{ inputs.environment == 'devnet' && 'main' || inputs.environment }} | ||
|
||
- name: KUSTOMIZE | Init kustomize | ||
uses: imranismail/setup-kustomize@v2 | ||
|
@@ -39,7 +40,7 @@ runs: | |
run: | | ||
cd aleph-apps/aleph-zero-dashboard/overlays/${{ inputs.environment }}/eu-central-1 | ||
kustomize edit set image "aleph-zero-dashboard-image-placeholder=${{ env.DEPLOY_IMAGE }}" | ||
- name: GIT | Commit changes to aleph-apps repository | ||
uses: EndBug/[email protected] | ||
env: | ||
|
@@ -50,4 +51,4 @@ runs: | |
message: 'Updating aleph-zero-dashboard ${{ inputs.environment }} docker image tag: ${{ inputs.image_tag }}' | ||
add: '*.yaml' | ||
cwd: 'aleph-apps' | ||
branch: ${{ inputs.environment }} | ||
branch: ${{ inputs.environment == 'devnet' && 'main' || inputs.environment }} |
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,50 @@ | ||
name: Build, push and deploy Aleph Zero Dashboard to devnet | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- ".github/**" | ||
- "*.md" | ||
|
||
jobs: | ||
build-and-push: | ||
name: Build and push | ||
runs-on: ubuntu-20.04 | ||
environment: | ||
name: devnet | ||
steps: | ||
- name: GIT | Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build and push devnet image | ||
uses: ./.github/actions/build-and-push | ||
id: build-devnet | ||
with: | ||
environment: devnet | ||
build_envs: 'VITE_DISABLE_FIAT=1' | ||
aws_mainnet_access_key_id: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }} | ||
aws_mainnet_secret_access_key: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }} | ||
outputs: | ||
image_tag: ${{ steps.build-devnet.outputs.image_tag }} | ||
|
||
deploy-to-devnet: | ||
name: Deploy to devnet | ||
runs-on: ubuntu-20.04 | ||
needs: [build-and-push] | ||
environment: | ||
name: devnet | ||
steps: | ||
- name: GIT | Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy Aleph Zero Dashboard to Devnet | ||
uses: ./.github/actions/deploy | ||
id: deploy-devnet | ||
with: | ||
environment: devnet | ||
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }} | ||
image_tag: ${{ needs.build-and-push.outputs.image_tag }} | ||
github_token: ${{ secrets.CI_GH_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,27 +17,7 @@ Reach out to [email protected] for clarification of any content within this documen | |
|
||
## Environment Variables | ||
|
||
Optionally apply the following environment variables in an environment file such as `.env` or with `yarn build` to customize the build of staking dashboard: | ||
|
||
``` | ||
# disable all mentioning of fiat values and token prices | ||
VITE_DISABLE_FIAT=1 | ||
# display an organization label in the network bar | ||
VITE_ORGANISATION="© Parity Technologies" | ||
# provide a privacy policy url in the network bar | ||
VITE_PRIVACY_URL=https://... | ||
# disable mainnet / testnet network (for e.g. testnet deployment) | ||
VITE_DISABLE_MAINNET=1 | ||
VITE_DISABLE_TESTNET=1 | ||
# add connection to a custom network (for example a feature net, local and devnet are avaliable by default in a development build) | ||
VITE_ENABLE_CUSTOM_NETWORK=1 | ||
VITE_CUSTOM_WS_ADDRESS=wss://ws.test.azero.dev | ||
``` | ||
Optionally apply the following environment variables in an environment file, see [`.env`](.env) for example. | ||
|
||
## Config Files | ||
|
||
|
This file was deleted.
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
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