diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9197c6d..f002adb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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=raw,value=${{steps.version.outputs.version}},priority=300 type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image