GithubHelp home page GithubHelp logo

Getting the tagging working about nx-tools HOT 3 CLOSED

gperdomor avatar gperdomor commented on August 10, 2024 2
Getting the tagging working

from nx-tools.

Comments (3)

cskiwi avatar cskiwi commented on August 10, 2024

By doing:

- run: npx nx affected --target=docker --base=${{ needs.base.outputs.base }} --head=origin/main
  env:
    INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    INPUT_TAGS: ${{env.LATEST_TAG}}

I can get the version tag on it. But now I don't have the latest tag on it. Is there any way to add this?

from nx-tools.

microwavekonijn avatar microwavekonijn commented on August 10, 2024

You need to push an actual tag in order to get match and semver to work, using npm version for instance and have the action run on that. The latest tag will be automatically added when this happens due to the semver and match rules. In addition, as you might be working with a monorepo semver might not work as the tags created are usually of the format <app>@<version>(e.g. changesets). I have added some rules to cover that scenario below:

"type=match,pattern=/app-name@(\\d+\\.\\d+\\.\\d+)(?!-)/i,group=1",
"type=match,pattern=/app-name@(\\d+\\.\\d+)\\.\\d+(?!-)/i,group=1",
"type=match,pattern=/app-name@(\\d+)\\.\\d+\\.\\d+(?!-)/i,group=1",

Also this might be of interest regarding the generation of the latest tag https://github.com/docker/metadata-action#latest-tag

from nx-tools.

cskiwi avatar cskiwi commented on August 10, 2024

thanks! but the creation of a docker image isn't needed anymore. So I can't test this as I've removed the code.

from nx-tools.

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.