Merge pull request #2959 from gobitfly/NOBIDS/cache_validator_status_… #45
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: 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 }}" | |