Skip to content

more verbose logging during validator snapshot catchup #134

more verbose logging during validator snapshot catchup

more verbose logging during validator snapshot catchup #134

Workflow file for this run

name: Build Edge image and push to DockerHub
on:
push:
branches:
- "*"
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and publish Docker image
if: ${{ github.ref == 'refs/heads/palm-migration' }}
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.tag_version.outputs.new_tag }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.RELEASES_ACTION_GITHUB_TOKEN }}
tag_prefix: ""
fetch_all_tags: true
release_branches: "main,develop,palm-migration"
- uses: docker/build-push-action@v2
name: Build and push mainnet
with:
context: .
push: true
file: Dockerfile.mainnet
build-args: |
"VERSION=${{ steps.tag_version.outputs.new_tag }}"
tags: |
gatewayfm/polygon-edge:mainnet-latest
gatewayfm/polygon-edge:mainnet-${{ steps.tag_version.outputs.new_tag }}
- uses: docker/build-push-action@v2
name: Build and push testnet
with:
context: .
push: true
file: Dockerfile.testnet
build-args: |
"VERSION=${{ steps.tag_version.outputs.new_tag }}"
tags: |
gatewayfm/polygon-edge:testnet-latest
gatewayfm/polygon-edge:testnet-${{ steps.tag_version.outputs.new_tag }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
token: ${{ secrets.RELEASES_ACTION_GITHUB_TOKEN }}
goreleaser:
needs: build
name: Build and publish binaries
if: ${{ github.ref == 'refs/heads/palm-migration' }}
runs-on: ubuntu-latest
env:
DOCKER_CONFIG: $HOME/.docker
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo tag_name=${TAG} >> $GITHUB_OUTPUT
- name: Run GoReleaser
run: |
docker run \
--rm \
--privileged \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN \
-e DOCKER_CONFIG \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate
env:
PACKAGE_NAME: github.com/gateway-fm/polygon-edge
GOLANG_CROSS_VERSION: v1.20.5
GITHUB_TOKEN: ${{ secrets.RELEASES_ACTION_GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}