Skip to content

Commit

Permalink
Add tag event to docker build yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minituff committed Oct 9, 2023
1 parent 6e09de3 commit 76ca071
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['dev']
branches:
- 'main'
# - 'dev'
tags:
- 'v*'

jobs:
push_to_registries:
Expand Down Expand Up @@ -45,11 +48,9 @@ jobs:
${{ github.repository }} # minituff/nautical-backup
ghcr.io/${{ github.repository }}
tags: |
type=schedule
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
# This step uses the docker/build-push-action action to build the image, based on your repository's Dockerfile.
# If the build succeeds, it pushes the image to GitHub Packages.
Expand Down

0 comments on commit 76ca071

Please sign in to comment.