Skip to content

latest/edge + default branch name as tag (v2) #55

@MarcelCoding

Description

@MarcelCoding

Behaviour

Latest is also created in default branch and not only on tag creation.
Branch name is created in default branch if edge is enabled.

Steps to reproduce this issue

  1. Enable type=edge
  2. Enable type=ref,event=branch

Expected behaviour

Latest only if the run is in a tag.
Branch name if default branch only if edge is disabled.

Actual behaviour

see Behaviour

Configuration

      - name: Docker meta
        id: docker_meta
        uses: crazy-max/ghaction-docker-meta@v2
        with:
          images: |
            ${{ env.IMAGE_NAME }}
            ghcr.io/${{ env.IMAGE_NAME }}
          tags: |
            type=edge
            type=ref,event=pr
            type=ref,event=branch
            type=semver,pattern={{version}}
            type=semver,pattern={{major}}.{{minor}}
          flavor: |
            suffix=-${{ matrix.jvm-impl }}
            latest=${{ matrix.jvm-impl == 'hotspot' }}

Logs

first: first.txt
second: second.txt

PS: Is there any way to check all existing tags to decide if the current tag is the latest or only a patch for an older tag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions