Set BLOCKSCOUT_VERSION env in GA config

pull/7144/head
Viktor Baranov 2 years ago
parent c7ce72a9c6
commit a2eaeaef3a
  1. 3
      .github/workflows/publish-docker-image-every-push.yml
  2. 3
      .github/workflows/publish-docker-image-release.yml
  3. 2
      docker/Dockerfile

@ -56,8 +56,6 @@ jobs:
cache-from: type=registry,ref=blockscout/blockscout:buildcache cache-from: type=registry,ref=blockscout/blockscout:buildcache
cache-to: type=registry,ref=blockscout/blockscout:buildcache,mode=max cache-to: type=registry,ref=blockscout/blockscout:buildcache,mode=max
tags: blockscout/blockscout:latest, blockscout/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }} tags: blockscout/blockscout:latest, blockscout/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }}
args: |
BLOCKSCOUT_VERSION=v{{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
build-args: | build-args: |
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_READ_API=false DISABLE_READ_API=false
@ -67,6 +65,7 @@ jobs:
WOBSERVER_ENABLED=false WOBSERVER_ENABLED=false
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 }}
- name: Build and push Docker image for frontend - name: Build and push Docker image for frontend
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3

@ -53,8 +53,6 @@ jobs:
platforms: | platforms: |
linux/arm64 linux/arm64
linux/amd64 linux/amd64
args: |
BLOCKSCOUT_VERSION=v{{ env.RELEASE_VERSION }}-beta
build-args: | build-args: |
CACHE_EXCHANGE_RATES_PERIOD= CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_READ_API=false DISABLE_READ_API=false
@ -64,6 +62,7 @@ jobs:
WOBSERVER_ENABLED=false WOBSERVER_ENABLED=false
ADMIN_PANEL_ENABLED= ADMIN_PANEL_ENABLED=
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL= CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v{{ env.RELEASE_VERSION }}-beta
merge-master-after-release: merge-master-after-release:
name: Merge 'master' to specific branch after release name: Merge 'master' to specific branch after release

@ -36,6 +36,8 @@ ARG MIXPANEL_TOKEN
ARG MIXPANEL_URL ARG MIXPANEL_URL
ARG AMPLITUDE_API_KEY ARG AMPLITUDE_API_KEY
ARG AMPLITUDE_URL ARG AMPLITUDE_URL
ARG BLOCKSCOUT_VERSION
ENV BLOCKSCOUT_VERSION=${BLOCKSCOUT_VERSION}
# Cache elixir deps # Cache elixir deps
ADD mix.exs mix.lock ./ ADD mix.exs mix.lock ./

Loading…
Cancel
Save