-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tag last version as latest when merging to main.
Set numerous tags as latest when PR is merged to main, but don't tag when built on branches.
- Loading branch information
Showing
2 changed files
with
60 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
ARG NODE_VERSION=20.15.1 | ||
ARG ALPINE_VERSION=3.20 | ||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} as node_patched_npm | ||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_patched_npm | ||
ARG NPM_VERSION=10.8.2 | ||
LABEL org.opencontainers.image.authors="Tim Rowe <[email protected]>" | ||
LABEL description="Node.js with most up-to-date npm versions globally installed." | ||
LABEL version="node${NODE_VERSION}-alpine${ALPINE_VERSION}-npm$NPM_VERSION" | ||
LABEL version="node$NODE_VERSION-alpine$ALPINE_VERSION-npm$NPM_VERSION" | ||
RUN --mount=type=cache,target=/root/.npm npm config set fund false --location=global && \ | ||
npm config set update-notifier false --location=global && \ | ||
npm install -g npm@${NPM_VERSION} |