Skip to content

Commit

Permalink
(NOBIDS) ci: add way to publish docker images outside of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed May 14, 2024
1 parent 0c265db commit 19415a3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-docker-images-tagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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:10})" >> $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 }}"

0 comments on commit 19415a3

Please sign in to comment.