Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Sammy Huang <[email protected]>
  • Loading branch information
yellow-shine committed Dec 7, 2023
1 parent 68f75e4 commit 71140e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ jobs:
huangliang1203/birdwatcher
# generate Docker tags based on the following events/attributes
tags: |
# This configuration will trigger on a push tag event. It requires a Git tag that follows semantic versioning (semver) conventions.
# For example, if the Git tag is v1.2.3, the output will be formatted as '1.2.3'.
type=semver,pattern={{version}}
# This setting outputs the Git commit hash as a Docker tag(e.g., 'sha-ad132f5').
type=sha
type=raw,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}}
# Custom tagging is enabled for manual workflow dispatch events. The format combines branch name, current date, and commit hash.
# Example format: 'feature-branch-20231207-ad132f5'.
# This custom tag is generated only when the workflow is triggered via 'workflow_dispatch' event.
type=raw,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}},enable=${{ github.event == 'workflow_dispatch' }}
- name: Login to Docker Hub
Expand Down

0 comments on commit 71140e8

Please sign in to comment.