diff --git a/.github/workflows/publish-docker-image-for-core.yml b/.github/workflows/publish-docker-image-for-core.yml index 591a50a53f..b90942317b 100644 --- a/.github/workflows/publish-docker-image-for-core.yml +++ b/.github/workflows/publish-docker-image-for-core.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: POA Core Publish Docker image on: + workflow_dispatch: push: branches: - production-core-stg diff --git a/.github/workflows/publish-docker-image-for-eth-goerli.yml b/.github/workflows/publish-docker-image-for-eth-goerli.yml index c4028b0cbb..28b51f91c9 100644 --- a/.github/workflows/publish-docker-image-for-eth-goerli.yml +++ b/.github/workflows/publish-docker-image-for-eth-goerli.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: ETH Goerli Publish Docker image on: + workflow_dispatch: push: branches: - production-eth-goerli-stg diff --git a/.github/workflows/publish-docker-image-for-eth-sepolia.yml b/.github/workflows/publish-docker-image-for-eth-sepolia.yml index da11bfdfac..28bedb51ee 100644 --- a/.github/workflows/publish-docker-image-for-eth-sepolia.yml +++ b/.github/workflows/publish-docker-image-for-eth-sepolia.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: ETH Sepolia Publish Docker image on: + workflow_dispatch: push: branches: - production-eth-sepolia-stg diff --git a/.github/workflows/publish-docker-image-for-eth.yml b/.github/workflows/publish-docker-image-for-eth.yml index a7286696a5..bfd8ae1519 100644 --- a/.github/workflows/publish-docker-image-for-eth.yml +++ b/.github/workflows/publish-docker-image-for-eth.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: ETH Publish Docker image on: + workflow_dispatch: push: branches: - production-eth-stg-experimental diff --git a/.github/workflows/publish-docker-image-for-fuse.yml b/.github/workflows/publish-docker-image-for-fuse.yml index 7aa400a5a7..b0d1eb68ff 100644 --- a/.github/workflows/publish-docker-image-for-fuse.yml +++ b/.github/workflows/publish-docker-image-for-fuse.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Fuse Publish Docker image on: + workflow_dispatch: push: branches: - production-fuse-stg diff --git a/.github/workflows/publish-docker-image-for-immutable.yml b/.github/workflows/publish-docker-image-for-immutable.yml index 3423d51615..d86f7025cb 100644 --- a/.github/workflows/publish-docker-image-for-immutable.yml +++ b/.github/workflows/publish-docker-image-for-immutable.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Immutable Publish Docker image on: + workflow_dispatch: push: branches: - production-immutable-stg diff --git a/.github/workflows/publish-docker-image-for-l2-staging.yml b/.github/workflows/publish-docker-image-for-l2-staging.yml index 6fc944c700..a6227eaee5 100644 --- a/.github/workflows/publish-docker-image-for-l2-staging.yml +++ b/.github/workflows/publish-docker-image-for-l2-staging.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: L2 staging Publish Docker image on: + workflow_dispatch: push: branches: - staging-l2 diff --git a/.github/workflows/publish-docker-image-for-lukso.yml b/.github/workflows/publish-docker-image-for-lukso.yml index 9b5f6eaf7a..f294165468 100644 --- a/.github/workflows/publish-docker-image-for-lukso.yml +++ b/.github/workflows/publish-docker-image-for-lukso.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: LUKSO Publish Docker image on: + workflow_dispatch: push: branches: - production-lukso-stg diff --git a/.github/workflows/publish-docker-image-for-optimism.yml b/.github/workflows/publish-docker-image-for-optimism.yml index 3a1f168fa0..c164e1b7d8 100644 --- a/.github/workflows/publish-docker-image-for-optimism.yml +++ b/.github/workflows/publish-docker-image-for-optimism.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Optimism Publish Docker image on: + workflow_dispatch: push: branches: - production-optimism-stg diff --git a/.github/workflows/publish-docker-image-for-polygon-edge.yml b/.github/workflows/publish-docker-image-for-polygon-edge.yml index 6087012e4c..3b3f7604ca 100644 --- a/.github/workflows/publish-docker-image-for-polygon-edge.yml +++ b/.github/workflows/publish-docker-image-for-polygon-edge.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Polygon Edge Publish Docker image on: + workflow_dispatch: push: branches: - production-polygon-edge-stg diff --git a/.github/workflows/publish-docker-image-for-rsk.yml b/.github/workflows/publish-docker-image-for-rsk.yml index 5cf04ac303..d47134f2ae 100644 --- a/.github/workflows/publish-docker-image-for-rsk.yml +++ b/.github/workflows/publish-docker-image-for-rsk.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Rootstock Publish Docker image on: + workflow_dispatch: push: branches: - production-rsk-stg diff --git a/.github/workflows/publish-docker-image-for-stability.yml b/.github/workflows/publish-docker-image-for-stability.yml index 0c04104be1..089e5924e3 100644 --- a/.github/workflows/publish-docker-image-for-stability.yml +++ b/.github/workflows/publish-docker-image-for-stability.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Stability Publish Docker image on: + workflow_dispatch: push: branches: - production-stability-stg diff --git a/.github/workflows/publish-docker-image-for-suave.yml b/.github/workflows/publish-docker-image-for-suave.yml index e84a0115f1..b91bb91e54 100644 --- a/.github/workflows/publish-docker-image-for-suave.yml +++ b/.github/workflows/publish-docker-image-for-suave.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: SUAVE Publish Docker image on: + workflow_dispatch: push: branches: - production-suave-stg diff --git a/.github/workflows/publish-docker-image-for-xdai.yml b/.github/workflows/publish-docker-image-for-xdai.yml index fca17ff2e0..947a675c57 100644 --- a/.github/workflows/publish-docker-image-for-xdai.yml +++ b/.github/workflows/publish-docker-image-for-xdai.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Gnosis chain Publish Docker image on: + workflow_dispatch: push: branches: - production-xdai-stg diff --git a/.github/workflows/publish-docker-image-for-zkevm.yml b/.github/workflows/publish-docker-image-for-zkevm.yml index a479408696..32a17480e8 100644 --- a/.github/workflows/publish-docker-image-for-zkevm.yml +++ b/.github/workflows/publish-docker-image-for-zkevm.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Zkevm publish Docker image on: + workflow_dispatch: push: branches: - production-zkevm-stg diff --git a/.github/workflows/publish-docker-image-for-zksync.yml b/.github/workflows/publish-docker-image-for-zksync.yml index 057112de20..8d02b444c1 100644 --- a/.github/workflows/publish-docker-image-for-zksync.yml +++ b/.github/workflows/publish-docker-image-for-zksync.yml @@ -3,9 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -name: Publish Docker image for specific chain branches +name: Zksync publish Docker image on: + workflow_dispatch: push: branches: - production-zksync-stg diff --git a/.github/workflows/publish-docker-image-release-additional.yml b/.github/workflows/publish-docker-image-release-additional.yml deleted file mode 100644 index 9e05afff6f..0000000000 --- a/.github/workflows/publish-docker-image-release-additional.yml +++ /dev/null @@ -1,105 +0,0 @@ -# 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: Publish Docker image for some custom chains - -on: - release: - types: [published] - -env: - OTP_VERSION: '25.2.1' - ELIXIR_VERSION: '1.14.5' - -jobs: - push_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - env: - RELEASE_VERSION: 5.3.2 - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: blockscout/blockscout - - - name: Build and push Docker image for Rootstock - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - tags: blockscout/blockscout-rsk:latest, blockscout/blockscout-rsk:${{ env.RELEASE_VERSION }} - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=false - CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= - ADMIN_PANEL_ENABLED=false - CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= - BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - CHAIN_TYPE=rsk - - - name: Build and push Docker image for Polygon Edge - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - tags: blockscout/blockscout-polygon-edge:latest, blockscout/blockscout-polygon-edge:${{ env.RELEASE_VERSION }} - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=false - CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= - ADMIN_PANEL_ENABLED=false - CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= - BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - CHAIN_TYPE=polygon_edge - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - tags: blockscout/blockscout-stability:latest, blockscout/blockscout-stability:${{ env.RELEASE_VERSION }} - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=false - CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= - ADMIN_PANEL_ENABLED=false - CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= - BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - CHAIN_TYPE=stability \ No newline at end of file diff --git a/.github/workflows/publish-docker-image-release.yml b/.github/workflows/publish-docker-image-release.yml deleted file mode 100644 index fe999a37f7..0000000000 --- a/.github/workflows/publish-docker-image-release.yml +++ /dev/null @@ -1,165 +0,0 @@ -# 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: Publish Docker image - -on: - release: - types: [published] - -env: - OTP_VERSION: '25.2.1' - ELIXIR_VERSION: '1.14.5' - -jobs: - push_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - env: - RELEASE_VERSION: 5.3.2 - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: blockscout/blockscout - - - name: Build & Push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - cache-from: type=registry,ref=blockscout/blockscout:buildcache - cache-to: type=registry,ref=blockscout/blockscout:buildcache,mode=max - tags: blockscout/blockscout:latest, blockscout/blockscout:${{ env.RELEASE_VERSION }}-alpha - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=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 }} - - - name: Build and push Docker image for zkEVM - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - tags: blockscout/blockscout-zkevm:latest, blockscout/blockscout-zkevm:${{ env.RELEASE_VERSION }} - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=false - CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= - ADMIN_PANEL_ENABLED=false - CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= - BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - CHAIN_TYPE=polygon_zkevm - - - name: Build and push Docker image for SUAVE - uses: docker/build-push-action@v5 - with: - context: . - file: ./docker/Dockerfile - push: true - tags: blockscout/blockscout-suave:latest, blockscout/blockscout-suave:${{ env.RELEASE_VERSION }} - platforms: | - linux/amd64 - linux/arm64/v8 - build-args: | - CACHE_EXCHANGE_RATES_PERIOD= - API_V1_READ_METHODS_DISABLED=false - DISABLE_WEBAPP=false - API_V1_WRITE_METHODS_DISABLED=false - CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= - ADMIN_PANEL_ENABLED=false - CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= - BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - CHAIN_TYPE=suave - - - name: Send release announcement to Slack workflow - id: slack - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "release-version": "${{ env.RELEASE_VERSION }}", - "release-link": "https://github.com/blockscout/blockscout/releases/tag/v${{ env.RELEASE_VERSION }}-beta" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - - # merge-master-after-release: - # name: Merge 'master' to specific branch after release - # runs-on: ubuntu-latest - # env: - # BRANCHES: | - # production-core-stg - # production-sokol-stg - # production-eth-stg-experimental - # production-eth-goerli-stg - # production-lukso-stg - # production-xdai-stg - # production-polygon-supernets-stg - # production-rsk-stg - # production-immutable-stg - # steps: - # - uses: actions/checkout@v4 - # - name: Set Git config - # run: | - # git config --local user.email "actions@github.com" - # git config --local user.name "Github Actions" - # - name: Merge master back after release - # run: | - # git fetch --unshallow - # touch errors.txt - # for branch in $BRANCHES; - # do - # git reset --merge - # git checkout master - # git fetch origin - # echo $branch - # git ls-remote --exit-code --heads origin $branch || { echo $branch >> errors.txt; continue; } - # echo "Merge 'master' to $branch" - # git checkout $branch - # git pull || { echo $branch >> errors.txt; continue; } - # git merge --no-ff master -m "Auto-merge master back to $branch" || { echo $branch >> errors.txt; continue; } - # git push || { echo $branch >> errors.txt; continue; } - # git checkout master; - # done - # [ -s errors.txt ] && echo "There are problems with merging 'master' to branches:" || echo "Errors file is empty" - # cat errors.txt - # [ ! -s errors.txt ]