fix: Separate indexer setup (#10032)
* fix: Separate indexer setup * Configure CI for sepate images for indexer and API * Change CI for every push to master branch (build separate indexer/api images) * Add DISABLE_API env var * Indexing status improvements for api instance --------- Co-authored-by: Viktor Baranov <baranov.viktor.27@gmail.com>mf-only-health-webapp
parent
fcc5ff2c89
commit
2e4e2ec051
@ -0,0 +1,87 @@ |
||||
name: Pre-release for Ethereum |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
number: |
||||
type: number |
||||
required: true |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Ethereum (indexer + API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-ethereum:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=ethereum |
||||
|
||||
- name: Build and push Docker image for Ethereum (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-ethereum:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=ethereum |
||||
|
||||
- name: Build and push Docker image for Ethereum (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-ethereum:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=ethereum |
@ -0,0 +1,87 @@ |
||||
name: Pre-release for Optimism |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
number: |
||||
type: number |
||||
required: true |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Optimism (indexer + API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-optimism:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=optimism |
||||
|
||||
- name: Build and push Docker image for Optimism (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-optimism:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=optimism |
||||
|
||||
- name: Build and push Docker image for Optimism (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-optimism:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=optimism |
@ -0,0 +1,87 @@ |
||||
name: Pre-release for Shibarium |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
number: |
||||
type: number |
||||
required: true |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Shibarium (indexer + API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-shibarium:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=shibarium |
||||
|
||||
- name: Build and push Docker image for Shibarium (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-shibarium:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=shibarium |
||||
|
||||
- name: Build and push Docker image for Shibarium (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-shibarium:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=shibarium |
@ -0,0 +1,90 @@ |
||||
name: Pre-release for ZkSync |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
number: |
||||
type: number |
||||
required: true |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for ZkSync (indexer + API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-zksync:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=zksync |
||||
|
||||
- name: Build and push Docker image for ZkSync (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-zksync:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=zksync |
||||
|
||||
- name: Build and push Docker image for ZkSync (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-zksync:${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-alpha.${{ inputs.number }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=zksync |
@ -1,40 +0,0 @@ |
||||
name: ETH Goerli Publish Docker image |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
push: |
||||
branches: |
||||
- production-eth-goerli |
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
DOCKER_CHAIN_NAME: eth-goerli |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo-and-short-sha |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-${{ env.DOCKER_CHAIN_NAME }}:latest, blockscout/blockscout-${{ env.DOCKER_CHAIN_NAME }}:${{ env.RELEASE_VERSION }}-postrelease-${{ env.SHORT_SHA }} |
||||
build-args: | |
||||
CHAIN_TYPE=ethereum |
||||
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.+commit.${{ env.SHORT_SHA }} |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
@ -0,0 +1,88 @@ |
||||
name: Release for Fuse |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
release: |
||||
types: [published] |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Fuse (indexer + API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-fuse:latest, blockscout/blockscout-fuse:${{ env.RELEASE_VERSION }} |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
BRIDGED_TOKENS_ENABLED=true |
||||
|
||||
- name: Build and push Docker image for Fuse (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-fuse:${{ env.RELEASE_VERSION }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
BRIDGED_TOKENS_ENABLED=true |
||||
|
||||
- name: Build and push Docker image for Fuse (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-fuse:${{ env.RELEASE_VERSION }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
BRIDGED_TOKENS_ENABLED=true |
@ -0,0 +1,88 @@ |
||||
name: Release for Polygon Edge |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
release: |
||||
types: [published] |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Polygon Edge (indexer + api) |
||||
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: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_edge |
||||
|
||||
- name: Build and push Docker image for Polygon Edge (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-polygon-edge:${{ env.RELEASE_VERSION }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_edge |
||||
|
||||
- name: Build and push Docker image for Polygon Edge (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-polygon-edge:${{ env.RELEASE_VERSION }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_edge |
@ -0,0 +1,88 @@ |
||||
name: Release for Polygon zkEVM |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
release: |
||||
types: [published] |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Polygon zkEVM (indexer + API) |
||||
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: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_zkevm |
||||
|
||||
- name: Build and push Docker image for Polygon zkEVM (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-zkevm:${{ env.RELEASE_VERSION }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_zkevm |
||||
|
||||
- name: Build and push Docker image for Polygon zkEVM (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-zkevm:${{ env.RELEASE_VERSION }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=polygon_zkevm |
@ -0,0 +1,87 @@ |
||||
name: Release for Rootstock |
||||
|
||||
on: |
||||
release: |
||||
types: [published] |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for Rootstock (indexer + API) |
||||
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: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=rsk |
||||
|
||||
- name: Build and push Docker image for Rootstock (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-rsk:${{ env.RELEASE_VERSION }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=rsk |
||||
|
||||
- name: Build and push Docker image for Rootstock (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-rsk:${{ env.RELEASE_VERSION }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=rsk |
@ -0,0 +1,88 @@ |
||||
name: Release for SUAVE |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
release: |
||||
types: [published] |
||||
|
||||
env: |
||||
OTP_VERSION: ${{ vars.OTP_VERSION }} |
||||
ELIXIR_VERSION: ${{ vars.ELIXIR_VERSION }} |
||||
|
||||
jobs: |
||||
push_to_registry: |
||||
name: Push Docker image to Docker Hub |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
- name: Setup repo |
||||
uses: ./.github/actions/setup-repo |
||||
with: |
||||
docker-username: ${{ secrets.DOCKER_USERNAME }} |
||||
docker-password: ${{ secrets.DOCKER_PASSWORD }} |
||||
|
||||
- name: Build and push Docker image for SUAVE (indexer + API) |
||||
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: | |
||||
DISABLE_WEBAPP=false |
||||
API_V1_READ_METHODS_DISABLED=false |
||||
API_V1_WRITE_METHODS_DISABLED=false |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=suave |
||||
|
||||
- name: Build and push Docker image for SUAVE (indexer) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-suave:${{ env.RELEASE_VERSION }}-indexer |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_API=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=suave |
||||
|
||||
- name: Build and push Docker image for SUAVE (API) |
||||
uses: docker/build-push-action@v5 |
||||
with: |
||||
context: . |
||||
file: ./docker/Dockerfile |
||||
push: true |
||||
tags: blockscout/blockscout-suave:${{ env.RELEASE_VERSION }}-api |
||||
platforms: | |
||||
linux/amd64 |
||||
linux/arm64/v8 |
||||
build-args: | |
||||
DISABLE_INDEXER=true |
||||
DISABLE_WEBAPP=true |
||||
CACHE_EXCHANGE_RATES_PERIOD= |
||||
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED= |
||||
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= |
||||
ADMIN_PANEL_ENABLED=false |
||||
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta |
||||
RELEASE_VERSION=${{ env.RELEASE_VERSION }} |
||||
CHAIN_TYPE=suave |
Loading…
Reference in new issue