GithubHelp home page GithubHelp logo

Comments (8)

crazy-max avatar crazy-max commented on August 10, 2024 2

@strophy Ok great :)

from metadata-action.

crazy-max avatar crazy-max commented on August 10, 2024 1

@strophy Thanks for your feedback, yes that's a bug that affects match, semver and schedule types.

from metadata-action.

crazy-max avatar crazy-max commented on August 10, 2024 1

Ok I will create a new PR to allow to explicitly override a global suffix/prefix.

from metadata-action.

crazy-max avatar crazy-max commented on August 10, 2024 1

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

from metadata-action.

crazy-max avatar crazy-max commented on August 10, 2024

@strophy Can you make a test with crazy-max/ghaction-docker-meta@fix-prefix-suffix please?

from metadata-action.

strophy avatar strophy commented on August 10, 2024

Thanks for the quick action on this @crazy-max I really appreciate it 🥇

The suffix is now being generated correctly. I realize this might be more of a feature request, but I would however prefer that an explicitly specified suffix in a tag attribute declaration would override the flavor argument. For example below (my output from running from your fix-prefix-suffix branch), the final tag should not have the -tag suffix because suffix= is explicitly specified in the tag attribute. Log output:

Run crazy-max/ghaction-docker-meta@fix-prefix-suffix
  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=true
  
    flavor: latest=false
  suffix=-dev
  
    github-token: ***
Context info
  eventName: release
  sha: 0ce1f078b1fac7f85874a77a728cc689fda86336
  ref: refs/tags/v0.19.36-dev.4
  workflow: tests
  action: crazy-maxghaction-docker-meta
  actor: strophy
  runNumber: 117
  runId: 726888199
Processing tags input
  type=match,pattern=v(\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
  type=match,pattern=v(\d+.\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
  type=match,pattern=v(\d+.\d+.\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
  type=match,pattern=v(.*),group=1,suffix=,enable=true,value=,priority=800,prefix=
Processing flavor input
  latest=false
  prefix=
  suffix=-dev
Docker image version
  0-dev
Docker tags
  strophy/drive:0-dev
  strophy/drive:0.19-dev
  strophy/drive:0.19.36-dev
  strophy/drive:0.19.36-dev.4-dev          // should be: strophy/drive:0.19.36-dev.4

Does this make sense? Or is there another way to achieve this behavior? My workflow code is here, thanks for your help!

from metadata-action.

crazy-max avatar crazy-max commented on August 10, 2024

@strophy

the final tag should not have the -tag suffix because suffix= is explicitly specified in the tag attribute.

Yes indeed. Let me check this.

from metadata-action.

strophy avatar strophy commented on August 10, 2024

This looks perfect to me:

Run crazy-max/ghaction-docker-meta@override-flavor
  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=true
  
    flavor: latest=false
  suffix=-dev
  
    github-token: ***
Context info
  eventName: release
  sha: aa00832302bf3aa17630e0190423597fcb37cb11
  ref: refs/tags/v0.19.38-dev.1
  workflow: tests
  action: crazy-maxghaction-docker-meta
  actor: strophy
  runNumber: 119
  runId: 727007388
Processing tags input
  type=match,pattern=v(\d+),group=1,value=,enable=true,priority=800
  type=match,pattern=v(\d+.\d+),group=1,value=,enable=true,priority=800
  type=match,pattern=v(\d+.\d+.\d+),group=1,value=,enable=true,priority=800
  type=match,pattern=v(.*),group=1,suffix=,enable=true,value=,priority=800
Processing flavor input
  latest=false
  prefix=
  suffix=-dev
Docker image version
  0-dev
Docker tags
  strophy/drive:0-dev
  strophy/drive:0.19-dev
  strophy/drive:0.19.38-dev
  strophy/drive:0.19.38-dev.1

from metadata-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.