-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1259 from edenia/feat/evm-cicd
feat(cicd): update workflow for specific networks with evm
- Loading branch information
Showing
12 changed files
with
136 additions
and
13 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
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 |
---|---|---|
|
@@ -66,7 +66,8 @@ jobs: | |
id: build_kubernetes_files | ||
run: | | ||
make \ | ||
build-kubernetes | ||
build-kubernetes \ | ||
build-kubernetes-evm | ||
env: | ||
# general | ||
NAMESPACE: telos-testnet-dashboard | ||
|
@@ -104,12 +105,26 @@ jobs: | |
HAPI_EOS_EXCHANGE_RATE_API: 'https://api.coingecko.com/api/v3/simple/price?ids=telos&vs_currencies=usd' | ||
HAPI_COINGECKO_API_TOKEN_ID: telos | ||
HAPI_REWARDS_TOKEN: TLOS | ||
# hapi-evm | ||
HAPI_EVM_SERVER_PORT: '9090' | ||
HAPI_EVM_SERVER_ADDRESS: '0.0.0.0' | ||
HAPI_EVM_HASURA_URL: 'http://dashboard-hasura:8080/v1/graphql' | ||
HAPI_EVM_HASURA_ADMIN_SECRET: ${{ secrets.HAPI_EVM_HASURA_ADMIN_SECRET }} | ||
HAPI_EVM_DATABASE_URL: ${{ secrets.HAPI_EVM_DATABASE_URL }} | ||
HAPI_EVM_ENDPOINT: 'https://testnet.telos.net/evm' | ||
HAPI_EVM_API_ENDPOINTS: '["https://telos-testnet.edenia.cloud","https://telos-testnet.cryptolions.io","https://testnet.telos.eosrio.io","https://test.telos.eosusa.io"]' | ||
HAPI_EVM_NETWORK_CHAIN_ID: 1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f | ||
HAPI_EVM_EOS_EVM_ACCOUNT: ${{ secrets.HAPI_EVM_EOS_EVM_ACCOUNT }} | ||
HAPI_EVM_BLOCK_INTERVAL_SEC: ${{ secrets.HAPI_EVM_BLOCK_INTERVAL_SEC }} | ||
HAPI_EVM_HYPERION_API: ${{ secrets.HAPI_EVM_HYPERION_API }} | ||
HAPI_EVM_HYPERION_START_AT: ${{ secrets.HAPI_EVM_HYPERION_START_AT }} | ||
# hasura | ||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' | ||
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }} | ||
HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} | ||
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: guest | ||
HASURA_GRAPHQL_ACTION_BASE_URL: http://dashboard-hapi:9090 | ||
HASURA_GRAPHQL_ACTION_EVM_URL: http://dashboard-hapi-evm:9090 | ||
|
||
- name: Setup and deploy kubernetes environment | ||
uses: steebchen/[email protected] | ||
|
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 |
---|---|---|
|
@@ -66,7 +66,8 @@ jobs: | |
id: build_kubernetes_files | ||
run: | | ||
make \ | ||
build-kubernetes | ||
build-kubernetes \ | ||
build-kubernetes-evm | ||
env: | ||
# general | ||
NAMESPACE: telos-dashboard | ||
|
@@ -104,12 +105,26 @@ jobs: | |
HAPI_EOS_EXCHANGE_RATE_API: 'https://api.coingecko.com/api/v3/simple/price?ids=telos&vs_currencies=usd' | ||
HAPI_COINGECKO_API_TOKEN_ID: telos | ||
HAPI_REWARDS_TOKEN: TLOS | ||
# hapi-evm | ||
HAPI_EVM_SERVER_PORT: '9090' | ||
HAPI_EVM_SERVER_ADDRESS: '0.0.0.0' | ||
HAPI_EVM_HASURA_URL: 'http://dashboard-hasura:8080/v1/graphql' | ||
HAPI_EVM_HASURA_ADMIN_SECRET: ${{ secrets.HAPI_EVM_HASURA_ADMIN_SECRET }} | ||
HAPI_EVM_DATABASE_URL: ${{ secrets.HAPI_EVM_DATABASE_URL }} | ||
HAPI_EVM_ENDPOINT: 'https://mainnet.telos.net/evm' | ||
HAPI_EVM_API_ENDPOINTS: '["https://telos.greymass.com","https://telos.eosphere.io","telos.caleos.io","mainnet.telosusa.io"]' | ||
HAPI_EVM_NETWORK_CHAIN_ID: 4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11 | ||
HAPI_EVM_EOS_EVM_ACCOUNT: ${{ secrets.HAPI_EVM_EOS_EVM_ACCOUNT }} | ||
HAPI_EVM_BLOCK_INTERVAL_SEC: ${{ secrets.HAPI_EVM_BLOCK_INTERVAL_SEC }} | ||
HAPI_EVM_HYPERION_API: ${{ secrets.HAPI_EVM_HYPERION_API }} | ||
HAPI_EVM_HYPERION_START_AT: ${{ secrets.HAPI_EVM_HYPERION_START_AT }} | ||
# hasura | ||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' | ||
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }} | ||
HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} | ||
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: guest | ||
HASURA_GRAPHQL_ACTION_BASE_URL: http://dashboard-hapi:9090 | ||
HASURA_GRAPHQL_ACTION_EVM_URL: http://dashboard-hapi-evm:9090 | ||
|
||
- name: Setup and deploy kubernetes environment | ||
uses: steebchen/[email protected] | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const api = | ||
process.env.HAPI_HYPERION_API || 'https://test.telos.eosusa.io' | ||
process.env.HAPI_EVM_HYPERION_API || 'https://test.telos.eosusa.io' | ||
export const startAt = | ||
process.env.HAPI_HYPERION_START_AT || '2021-06-02T00:00:00.000+00:00' | ||
process.env.HAPI_EVM_HYPERION_START_AT || '2021-06-02T00:00:00.000+00:00' |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export const evmEndpoint = | ||
process.env.HAPI_EVM_ENDPOINT || 'http://localhost/evm' | ||
export const chainId = process.env.HAPI_NETWORK_CHAIN_ID || 'chainid1' | ||
export const chainId = process.env.HAPI_EVM_NETWORK_CHAIN_ID || 'chainid1' | ||
export const evmAccount = process.env.HAPI_EVM_EOS_EVM_ACCOUNT || 'eosio.evm' | ||
export const eosEndpoints = | ||
process.env.HAPI_EVM_EOS_EVM_ACCOUNT?.split(',') || [] | ||
export const blockIntervalSec = parseFloat( | ||
process.env.HAPI_BLOCK_INTERVAL_SEC || '0.5' | ||
process.env.HAPI_EVM_BLOCK_INTERVAL_SEC || '0.5' | ||
) |
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,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: dashboard-hapi-evm | ||
name: dashboard-hapi-evm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dashboard-hapi-evm | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: dashboard-hapi-evm | ||
spec: | ||
imagePullSecrets: | ||
- name: regcred | ||
containers: | ||
- image: ${DOCKER_REGISTRY}/${IMAGE_NAME_HAPI_EVM}:${VERSION} | ||
imagePullPolicy: "Always" | ||
name: "dashboard-hapi-evm" | ||
envFrom: | ||
- configMapRef: | ||
name: dashboard-hapi-evm-config | ||
ports: | ||
- containerPort: 9090 |
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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: dashboard-hapi-evm | ||
name: dashboard-hapi-evm | ||
spec: | ||
ports: | ||
- name: hapi | ||
port: 9091 | ||
targetPort: 9090 | ||
selector: | ||
app: dashboard-hapi-evm |
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