Build erigon docker image #288
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build erigon docker image | |
on: | |
workflow_dispatch: | |
inputs: | |
repository: | |
description: The source erigon repository to build from | |
default: ledgerwatch/erigon | |
type: string | |
required: true | |
ref: | |
description: The branch, tag or SHA to checkout and build from | |
default: devel | |
type: string | |
required: true | |
docker_tag: | |
description: Override target docker tag (defaults to the above source ref if left blank) | |
type: string | |
required: false | |
runs_on: | |
description: The runner to use | |
type: choice | |
required: true | |
default: ubuntu-latest | |
options: | |
- ubuntu-latest | |
- services-medium-cpu | |
jobs: | |
erigon: | |
runs-on: ${{ inputs.runs_on }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-deps | |
with: | |
repository: ${{ inputs.repository }} | |
- uses: ./.github/actions/deploy | |
with: | |
source_repository: ${{ inputs.repository }} | |
source_ref: ${{ inputs.ref }} | |
target_tag: ${{ inputs.docker_tag || inputs.ref }} | |
target_repository: ethpandaops/erigon | |
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}" | |
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}" |