Skip to content

Different string substitution behavior for tags and flavor #141

Closed
@sparanoid

Description

@sparanoid

Behaviour

Steps to reproduce this issue

On tags:

tags: |
  type=ref,event=branch,prefix=${{ !startsWith(matrix.php, '8-fpm') && ' ' || format('{0}-', steps.prefix.outputs.ref) }}

Docker meta output:

Docker tags
  ***/php-fpm:master
  ghcr.io/***/php-fpm:master

On flavor:

flavor: |
  prefix=${{ !startsWith(matrix.php, '8-fpm') && ' ' || format('{0}-', steps.prefix.outputs.ref) }},onlatest=true

Expected behaviour

Docker tags
  ***/php-fpm:latest
  ghcr.io/***/php-fpm:latest

Actual behaviour

Docker meta output:

Docker tags
  ***/php-fpm: latest
  ghcr.io/***/php-fpm: latest

Configuration

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