Skip to content

Merge pull request #2953 from gobitfly/NOBIDS/adapt_signed_message_vi… #42

Merge pull request #2953 from gobitfly/NOBIDS/adapt_signed_message_vi…

Merge pull request #2953 from gobitfly/NOBIDS/adapt_signed_message_vi… #42

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 }}"