Skip to content

Commit

Permalink
upload to docker hub on release or push to develop
Browse files Browse the repository at this point in the history
fine grained triggers are defined in the  mapping, so we should not need to check for 'created' or 'develop' in the condition
  • Loading branch information
dennisvang authored and MarekSuchanek committed Feb 26, 2025
1 parent 7ab7fd2 commit fc751c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Publish to Docker Hub

on:
push:
branches:
- develop
pull_request:
release:
types: [created]
types:
- created

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -21,4 +25,4 @@ jobs:
secrets: inherit
with:
file: './Dockerfile'
push: ${{ github.event_name == 'release' && github.event.action == 'created' }}
push: ${{ github.event_name == 'push' || github.event_name == 'release' }}

0 comments on commit fc751c4

Please sign in to comment.