liip/RMT

Variables in post-release-action

Opened this issue · 3 comments

I tried this:

   post-release-actions:
        vcs-publish:                       # Publish the release to the VCS
          ask-confirmation: true
        command:
          cmd: ~/.local/bin/eb deploy --label %version%

But I just get the literal %version%. It would be very handy to have that available.

Hi @bitblower,
Yes, your request make sens. If you want, you can try to provide a PR. You can add this here: https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/CommandAction.php#L37

An other solution, if to call RMT current --raw from your deploy script. This is what I'm generally doing in such case... You can also call RMT current --raw --vcs-tag to get the associated git tag

@bitblower Please check the Pull request if this matches your requirements

What is the status of this issue? I think this is a basic functionality that must be available.