Skip to content

Disable main tag when latest is enabled #347

Description

@rob93c

Description

While working on my Docker workflow, I noticed that when merging changes to my main (the default branch in my case) 2 tags are created: latest and main.

How can I prevent main's creation?

This is my configuration:

      - name: Extract metadata
        id: metadata
        uses: docker/metadata-action@v5
        with:
          images: |
            rob93c/stickerify
          tags: |
            type=raw,value=latest,enable={{is_default_branch}}
            type=ref,event=branch
            type=ref,event=pr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions