Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:hop-protocol/hop into production
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed May 15, 2024
2 parents 1fa3984 + b4e9108 commit 7439069
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 235 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
paths:
- 'packages/hop-node/**'
- 'packages/v2-explorer-backend/**'
- 'packages/v1-hop-api/**'
- 'packages/v1-hop-explorer-backend/**'
- 'packages/v1-stats-worker/**'
env:
DOCKER_TAG: ${{ (github.ref_name == 'develop' && 'unstable') || (github.ref_name == 'production' && 'latest') }}

Expand All @@ -15,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
package-name: ['hop-node', 'v2-explorer-backend']
package-name: ['hop-node', 'v2-explorer-backend', 'v1-hop-api', 'v1-hop-explorer-backend', 'v1-stats-worker']
steps:
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
Expand All @@ -42,3 +45,27 @@ jobs:
file: ./packages/${{ matrix.package-name }}/Dockerfile
tags: hopprotocol/${{ matrix.package-name }}:${{ env.DOCKER_TAG }}
push: true

# status-notify:
# needs: [publish-docker]
# runs-on: ubuntu-latest
# environment: production
# strategy:
# matrix:
# secret-key: ['HOP_API', 'HOP_EXPLORER', 'STATS_WORKER']
# steps:
# - name: Notify webhook
# run: |
# WEBHOOK_URL=$(echo ${{ 'WEBOOK_URL_' + secrets[PACKAGE_NAME_UPPER] }})
# WEBHOOK_SECRET=$(echo ${{ 'WEBHOOK_SECRET' + secrets[PACKAGE_NAME_UPPER] }})

# STATUS="failed"
# if ${{ job.status == 'success' }}; then
# STATUS="success"
# fi

# curl "$WEBHOOK_URL" \
# -H "X-Secret: $WEBHOOK_SECRET" \
# -d '{"payload": {"reponame": "${{ github.repository }}", "branch": "${{ github.ref_name }}", "build_parameters": {"GITHUB_JOB": "${{ github.job }}"}, "outcome": "'$STATUS'", "build_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}' \
# -H "Content-Type: application/json" \
# -X POST
31 changes: 0 additions & 31 deletions .github/workflows/status-notify.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/v1-hop-api.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/v1-hop-explorer-backend.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/v1-stats-worker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/frontend",
"version": "0.0.0",
"version": "0.0.1",
"description": "Hop Protocol Frontend",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/src/config/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ if (process.env.NODE_ENV !== 'test') {
console.debug('config addresses:', addresses.tokens)
console.debug('deprecated tokens:', process.env.REACT_APP_DEPRECATED_TOKENS)
console.debug('deprecated pools:', process.env.REACT_APP_DEPRECATED_POOLS)
console.debug('PUBLIC_URL:', process.env.PUBLIC_URL)
console.debug('NODE_VERSION:', process.env.NODE_VERSION)
console.debug('REACT_APP_DISABLE_NATIVE_ASSET_TRANSFERS:', process.env.REACT_APP_DISABLE_NATIVE_ASSET_TRANSFERS)
console.debug('REACT_APP_ENABLED_CHAINS:', process.env.REACT_APP_ENABLED_CHAINS)
console.debug('REACT_APP_ENABLED_TOKENS:', process.env.REACT_APP_ENABLED_TOKENS)
console.debug('REACT_APP_NETWORK:', process.env.REACT_APP_NETWORK)
console.debug('REACT_APP_BNC_DAPP_ID:', process.env.REACT_APP_BNC_DAPP_ID)
}

const blocknativeDappid = process.env.REACT_APP_BNC_DAPP_ID
Expand Down
2 changes: 1 addition & 1 deletion packages/hop-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/hop-node",
"version": "0.0.2",
"version": "0.0.3",
"description": "The V1 Hop Node for Hop Protocol",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/v2-explorer-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/v2-explorer-backend",
"version": "0.0.5",
"version": "0.0.6",
"description": "The Hop v2 explorer backend",
"main": "dist/index.js",
"author": "Authereum Labs, Inc.",
Expand Down

0 comments on commit 7439069

Please sign in to comment.