Skip to content

(NOBIDS) ci: add way to publish docker images outside of releases #1

(NOBIDS) ci: add way to publish docker images outside of releases

(NOBIDS) ci: add way to publish docker images outside of releases #1

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@master
- id: pre-step
shell: bash
run: echo "release-version=$(echo ${GITHUB_REF:6})" >> $GITHUB_OUTPUT
- name: Publish to Dockerhub Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: gobitfly/eth2-beaconchain-explorer
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.pre-step.outputs.release-version }}"