Skip to content

Commit

Permalink
Use a calver action for tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Serubin committed Mar 22, 2024
1 parent 936a9ab commit 0efbc82
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get next version
uses: reecetech/version-increment@2023.9.3
id: version
with:
scheme: calver
increment: patch

- name: Extract metadata to create tags and labels
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{version}},value={{date 'YY.M.D' tz='America/New_York'}},enabled={{is_default_branch}}
type=semver,pattern={{version}},value={{steps.version.outputs.version}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
Expand Down

0 comments on commit 0efbc82

Please sign in to comment.