Skip to content

Important forks: Modify the block production interval from 30s to 10s. Reference Knowledge 25/1000 Translation Machine Translation · General Field Important fork:1. Modify the block production interval from 30s to 10s #161

Important forks: Modify the block production interval from 30s to 10s. Reference Knowledge 25/1000 Translation Machine Translation · General Field Important fork:1. Modify the block production interval from 30s to 10s

Important forks: Modify the block production interval from 30s to 10s. Reference Knowledge 25/1000 Translation Machine Translation · General Field Important fork:1. Modify the block production interval from 30s to 10s #161

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
service:
- image: geth
file: Dockerfile
- image: alltools
file: Dockerfile.alltools
steps:
- uses: actions/checkout@v3
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service.image }}
flavor: |
latest=auto
tags: |
type=schedule
type=ref,event=tag
type=sha,prefix=,format=long,enable=true,priority=100
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ${{ matrix.service.file }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max