From 558461d8a9f70a4ffe2acebae27bc8adfb498291 Mon Sep 17 00:00:00 2001 From: fx0x55 <80245546+fx0x55@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:49:29 +0800 Subject: [PATCH] Update to PundiScan --- ...functionx-publish-docker-image-release.yml | 70 ++++++++++++ .../fx/images/nav/web_home_nav_icon_logo.svg | 101 +++++++++++------- .../static/images/web_home_nav_icon_logo.svg | 101 +++++++++++------- .../templates/layout/_footer.html.eex | 3 +- .../templates/layout/_topnav.html.eex | 10 +- .../templates/layout/app.html.eex | 2 +- 6 files changed, 203 insertions(+), 84 deletions(-) create mode 100644 .github/workflows/functionx-publish-docker-image-release.yml diff --git a/.github/workflows/functionx-publish-docker-image-release.yml b/.github/workflows/functionx-publish-docker-image-release.yml new file mode 100644 index 000000000000..6de5f46a2012 --- /dev/null +++ b/.github/workflows/functionx-publish-docker-image-release.yml @@ -0,0 +1,70 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Function X Publish Docker image + +on: + release: + types: [published] + +env: + OTP_VERSION: '25.2.1' + ELIXIR_VERSION: '1.14.3' + +jobs: + push_to_registry: + runs-on: ubuntu-latest + env: + RELEASE_VERSION: 5.1.4 + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/functionx/blockscout + + - name: Build & Push Docker image + uses: docker/build-push-action@v3 + with: + context: . + file: ./docker/Dockerfile + push: true + cache-from: type=registry,ref=ghcr.io/functionx/blockscout:buildcache + cache-to: type=registry,ref=ghcr.io/functionx/blockscout:buildcache,mode=max + tags: ghcr.io/functionx/blockscout:latest, ghcr.io/functionx/blockscout:${{ env.RELEASE_VERSION }}-rc2 + platforms: | + linux/arm64 + linux/amd64 + build-args: | + CACHE_EXCHANGE_RATES_PERIOD= + DISABLE_READ_API=false + DISABLE_WEBAPP=false + DISABLE_WRITE_API=false + CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= + ADMIN_PANEL_ENABLED=false + DECODE_NOT_A_CONTRACT_CALLS=false + MIXPANEL_URL= + MIXPANEL_TOKEN= + AMPLITUDE_URL= + AMPLITUDE_API_KEY= + CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= + BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta + RELEASE_VERSION=${{ env.RELEASE_VERSION }} \ No newline at end of file diff --git a/apps/block_scout_web/assets/static/fx/images/nav/web_home_nav_icon_logo.svg b/apps/block_scout_web/assets/static/fx/images/nav/web_home_nav_icon_logo.svg index f1143bb25feb..d461dba2cd6b 100644 --- a/apps/block_scout_web/assets/static/fx/images/nav/web_home_nav_icon_logo.svg +++ b/apps/block_scout_web/assets/static/fx/images/nav/web_home_nav_icon_logo.svg @@ -1,57 +1,82 @@ - - Group@3x + + logo16 - - - - - - - + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/block_scout_web/assets/static/images/web_home_nav_icon_logo.svg b/apps/block_scout_web/assets/static/images/web_home_nav_icon_logo.svg index f1143bb25feb..d461dba2cd6b 100644 --- a/apps/block_scout_web/assets/static/images/web_home_nav_icon_logo.svg +++ b/apps/block_scout_web/assets/static/images/web_home_nav_icon_logo.svg @@ -1,57 +1,82 @@ - - Group@3x + + logo16 - - - - - - - + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex index 3bc40129c601..c2c5d6e4f9fd 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex @@ -104,7 +104,7 @@ Reserved.

- + @@ -125,4 +125,3 @@
<% end %> - diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex index 05ec13aacd2d..ba02479e4176 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex @@ -8,12 +8,12 @@