Skip to content

Commit

Permalink
build: docker image only on main branch push or tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed May 20, 2024
1 parent f703538 commit 6e49325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Publish Docker image

on:
push:
branches:
- master
tags:

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -118,6 +121,7 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=tag
type=ref,event=branch
- name: Log in to the Container registry
Expand Down

0 comments on commit 6e49325

Please sign in to comment.