Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JimCronqvist authored Aug 13, 2021
1 parent fed8489 commit 227b3ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
#schedule:
# - cron: '0 0 * * *'
push:
branches: [ master ]
branches: [ 'master', 'main', 'develop', 'feature/*' ]
# Publish semver tags as releases.
tags: [ 'v?*.*.*' ]
pull_request:
Expand Down Expand Up @@ -47,6 +47,12 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
#https://github.com/docker/metadata-action#semver
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 227b3ca

Please sign in to comment.