Comments (3)
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.
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.
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)
- Feature request: allow setting SBOM options to container builder HOT 2
- Provenance not set in docker build command when value is 'false' HOT 1
- Crystal Support HOT 4
- NX_CONTAINER_SHORT_SHA_LENGTH documentation in container-metadata
- externalDependencies (or how to ignore package-lock.json) HOT 1
- Had to downgrade to v5.3.0 because v6.0.0 throws error HOT 2
- Incorrect Setup Documentation HOT 1
- @nx-tools/nx-graphql-codegen:init Cannot find generator 'init' HOT 2
- Support for Yarn berry pnp repos
- Can't find init generator HOT 1
- Migration folder name is trimmed HOT 1
- question: Is there an easy way to define that additional files need to be included in dist HOT 1
- Feature Request: Support for pnpm in Dockerfile Generation Based on packageManager Setting in nx.json
- v5.2.0 Release Notes HOT 1
- Loosen `@graphql-codegen/cli` peer dependency version HOT 2
- Tagging dosent seem to infer semver for independant tags HOT 2
- Building with kaniko results in missing packets on node_modules HOT 4
- Docker context (directory) not set consistently?
- Git fallback not working properly HOT 1
- Feature Request: Support `{absWorkspaceRoot}` and `{absProjectRoot}` token replacement for file paths HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-tools.