Indexer/API docker images from production-optimism branch

pull/10419/head
Viktor Baranov 4 months ago
parent ad78a4d57a
commit bc7f6a7967
  1. 8
      .github/workflows/publish-docker-image-for-eth-sepolia.yml
  2. 4
      .github/workflows/publish-docker-image-for-eth.yml
  3. 46
      .github/workflows/publish-docker-image-for-optimism.yml

@ -36,7 +36,6 @@ jobs:
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
build-args: | build-args: |
CHAIN_TYPE=ethereum
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
API_V1_READ_METHODS_DISABLED=false API_V1_READ_METHODS_DISABLED=false
DISABLE_WEBAPP=false DISABLE_WEBAPP=false
@ -46,6 +45,7 @@ jobs:
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }} BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }} RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=ethereum
- name: Build and push Docker image (indexer) - name: Build and push Docker image (indexer)
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -59,7 +59,6 @@ jobs:
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
build-args: | build-args: |
CHAIN_TYPE=ethereum
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_WEBAPP=true DISABLE_WEBAPP=true
DISABLE_API=true DISABLE_API=true
@ -68,6 +67,7 @@ jobs:
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }} BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }} RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=ethereum
- name: Build and push Docker image (API) - name: Build and push Docker image (API)
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -81,7 +81,6 @@ jobs:
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
build-args: | build-args: |
CHAIN_TYPE=ethereum
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_WEBAPP=true DISABLE_WEBAPP=true
DISABLE_INDEXER=true DISABLE_INDEXER=true
@ -89,4 +88,5 @@ jobs:
ADMIN_PANEL_ENABLED=false ADMIN_PANEL_ENABLED=false
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }} BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }} RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=ethereum

@ -36,7 +36,6 @@ jobs:
linux/amd64 linux/amd64
linux/arm64/v8 linux/arm64/v8
build-args: | build-args: |
CHAIN_TYPE=ethereum
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
API_V1_READ_METHODS_DISABLED=false API_V1_READ_METHODS_DISABLED=false
DISABLE_WEBAPP=false DISABLE_WEBAPP=false
@ -45,4 +44,5 @@ jobs:
ADMIN_PANEL_ENABLED=false ADMIN_PANEL_ENABLED=false
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }} BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }} RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=ethereum

@ -24,7 +24,7 @@ jobs:
docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }} docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }}
docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }} docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }}
- name: Build and push Docker image - name: Build and push Docker image (indexer + API)
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
@ -45,4 +45,48 @@ jobs:
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }} BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }} RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=optimism
- name: Build and push Docker image (indexer)
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: blockscout/blockscout-${{ env.DOCKER_CHAIN_NAME }}:${{ env.RELEASE_VERSION }}-postrelease-${{ env.SHORT_SHA }}-indexer
labels: ${{ steps.setup.outputs.docker-labels }}
platforms: |
linux/amd64
linux/arm64/v8
build-args: |
CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_WEBAPP=true
DISABLE_API=true
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 }}
CHAIN_TYPE=optimism
- name: Build and push Docker image (API)
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: blockscout/blockscout-${{ env.DOCKER_CHAIN_NAME }}:${{ env.RELEASE_VERSION }}-postrelease-${{ env.SHORT_SHA }}-api
labels: ${{ steps.setup.outputs.docker-labels }}
platforms: |
linux/amd64
linux/arm64/v8
build-args: |
CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_WEBAPP=true
DISABLE_INDEXER=true
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 }}
CHAIN_TYPE=optimism CHAIN_TYPE=optimism
Loading…
Cancel
Save