mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-04 06:03:08 +00:00
62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: Release for Ethereum
|
|
|
|
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 GitHub Container Registry
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RELEASE_VERSION: 8.0.2
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup repo
|
|
uses: ./.github/actions/setup-repo
|
|
id: setup
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
docker-remote-multi-platform: true
|
|
docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }}
|
|
docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }}
|
|
|
|
- name: Build and push Docker image for Ethereum (indexer + API)
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/Dockerfile
|
|
push: true
|
|
tags: ghcr.io/blockscout/blockscout-ethereum:latest, ghcr.io/blockscout/blockscout-ethereum:${{ env.RELEASE_VERSION }}
|
|
labels: ${{ steps.setup.outputs.docker-labels }}
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64/v8
|
|
build-args: |
|
|
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}
|
|
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
|
|
CHAIN_TYPE=ethereum
|
|
|
|
- name: Build and push Docker image for Ethereum (indexer)
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/Dockerfile
|
|
push: true
|
|
tags: ghcr.io/blockscout/blockscout-ethereum:${{ env.RELEASE_VERSION }}-indexer
|
|
labels: ${{ steps.setup.outputs.docker-labels }}
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64/v8
|
|
build-args: |
|
|
DISABLE_API=true
|
|
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}
|
|
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
|
|
CHAIN_TYPE=ethereum
|
|
|