Skip to content

Commit

Permalink
GitHub Action for DockerHub build and publish #19
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanchez556 committed Oct 3, 2024
1 parent a26c83b commit 622a829
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build and Publish image to Docker Hub
on:
repository_dispatch:
types: [prover-update]
push:
branches:
- 'master'
tags:
- 'v*.*.*'

Expand Down Expand Up @@ -45,11 +45,11 @@ jobs:
- name: Determine Docker Tags
id: set-tag
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
if [[ "${GITHUB_EVENT_NAME}" == "repository_dispatch" ]]; then
echo "Latest version tags..."
elif [[ "${GITHUB_REF}" == refs/tags/* ]]; then
TAG_NAME=$(echo ${GITHUB_REF} | sed 's/refs\/tags\///')
echo "DOCKER_TAGS=${TAG_NAME}" >> $GITHUB_ENV
elif [[ "${GITHUB_REF}" == "refs/heads/master" ]]; then
echo "Latest version tags..."
else
echo "No valid ref for tagging. Exiting..."
exit 1
Expand Down

0 comments on commit 622a829

Please sign in to comment.