Skip to content

Commit

Permalink
push to DH on tag and release
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed May 8, 2024
1 parent e49d0d2 commit 216a029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch: # In case a repo contributor needs a specific docker tag built.
push:
tags: ['v*.*.*']
branches: [main]
release:
# Release logic:
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=unpublished#release
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
with:
images: |
ghcr.io/centrifuge/centrifuge-chain
${{ github.event_name != 'pull_request' && 'centrifugeio/centrifuge-chain' || ''}}
${{ (github.event_name == 'release' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))) && 'centrifugeio/centrifuge-chain' || ''}}
# TAGS:
# v.X.Y.Z when pushing a git tag (or a release)
# latest when triggered by a release
Expand Down

0 comments on commit 216a029

Please sign in to comment.