question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prefix/suffix not working?

See original GitHub issue

Behaviour

I am unable to add a prefix or suffix in v2 of this action, regardless if specified in the flavor or in the tag attributes.

Steps to reproduce this issue

  1. Specify suffix=-dev in flavor or individual tag
  2. Run action
  3. Suffix is not applied

Expected behaviour

The action should append the suffix to the tag

Actual behaviour

The suffix is not appended

Configuration

- name: Set -dev suffix
  id: release_type
  run: |
    if [[ ${{ contains(github.event.release.tag_name, '-dev') }} = true ]]
    then
      echo '::set-output name=dev-suffix::-dev'
    else
      echo '::set-output name=dev-suffix::'
    fi

- name: Docker meta
  id: docker_meta
  uses: crazy-max/ghaction-docker-meta@v2
  with:
    images: strophy/drive
    tags: |
      type=match,pattern=v(\d+),group=1
      type=match,pattern=v(\d+.\d+),group=1
      type=match,pattern=v(\d+.\d+.\d+),group=1
      type=match,pattern=v(.*),group=1,suffix=,enable=${{ contains(github.event.release.tag_name, '-dev') }}
    flavor: |
      latest=${{ !contains(github.event.release.tag_name, '-dev') }}
      suffix=${{ steps.release_type.outputs.dev-suffix }}

Logs

logs_396.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
crazy-maxcommented, Apr 7, 2021

@strophy Ok great 😃

1reaction
crazy-maxcommented, Apr 7, 2021

@strophy Can you make a test with crazy-max/ghaction-docker-meta@override-flavor please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prefix and suffix not working with NzInputNumber component
Prefix and suffix should be inside input. Suffix should be aligned to right side. What is actually happening? Prefix and suffix is not...
Read more >
LuckPerms prefix/suffix not working????? : r/MinecraftPlugins
Im trying to use essentials chat to make the prefix/suffix work. If anyone could help that would be 10/10 Thanks!
Read more >
LuckPerms Prefix/Suffix NOT showing - SpigotMC
Running into the error where my LuckPerms prefix is not showing. I bought a server setup which had Pex as it's permission system....
Read more >
3.4 Prefixes and Suffixes
Mastering common prefixes and suffixes is like learning a code. Once you crack the code, you can not only spell words more correctly...
Read more >
html - Input with prefix/suffix, NOT with previous sibling selector
With both prefix & suffix, the input isn't rounded at all (the buttons are rounded). I have managed to handle the prefix element,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found