Skip to content

Merge pull request #2960 from gobitfly/NOBIDS/limit_validator_name_se… #44

Merge pull request #2960 from gobitfly/NOBIDS/limit_validator_name_se…

Merge pull request #2960 from gobitfly/NOBIDS/limit_validator_name_se… #44

name: Publish Docker images
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- publish-docker
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: pre-step
shell: bash
run: echo "release-version=$(TZ=UTC0 git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd" $GITHUB_SHA)-$(git describe $GITHUB_SHA --always --tags)" >> $GITHUB_OUTPUT
- name: Publish to Dockerhub Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: gobitfly/eth2-beaconchain-explorer
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.pre-step.outputs.release-version }}"