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.

New boolean input tag_with_latest

See original GitHub issue

New boolean input tag_with_latest

It would add the ability for users to better set when to push as latest, such as evaluating an expression for example.

Example: tag as latest when push git tags

- uses: docker/build-push-action@v1
  with:
    username: ${{ secrets.DOCKER_USERNAME }}
    password: ${{ secrets.DOCKER_PASSWORD }}
    repository: felipecassiors/argbash-test
    add_git_labels: true
    # Only push as latest when push a git tag
    tag_with_latest: ${{ startsWith(github.ref, 'refs/tags/') }}
    tag_with_ref: true
    tag_with_sha: true

Usage with tag_with_ref

If tag_with_latest property is defined alongside tag_with_ref, then the strategy of push as latest when the branch is master from tag_with_ref should be ignored.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ibnesayeedcommented, May 12, 2020

I usually publish bleeding-edge changes of the master branch with master tag and reserve the latest for when the repo is tagged. This way, people who pull my images without explicit tags can always get something that I explicitly released.

  • on push to a branch
    • build image with the branch name as the image tag
  • on release/repo tag
    • build image with the tag ref as the image tag
    • build image with latest tag
0reactions
crazy-maxcommented, Sep 12, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the syntax for boolean attributes, e.g. a checked ...
Let boolean be a boolean attribute of tag tag , like checked and <input type="checkbox" . The following are valid, equivalent and true:...
Read more >
How To Use HTML5 Input Types | DigitalOcean
Let's go over all the possible HTML input types; from the default text ... autofocus - boolean to indicate if the input should...
Read more >
<input>: The Input (Form Input) element - HTML
(Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what, if any, type of ...
Read more >
Boolean inputs are not actually booleans · Issue #1483 - GitHub
Boolean type inputs do not work as expected; they are strings instead of booleans, even when surrounded by ${{ }} (e.g. in a...
Read more >
HTML input checked Attribute - W3Schools
The checked attribute is a boolean attribute. When present, it specifies that an <input> element should be pre-selected (checked) when the page loads....
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