Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
next-kubernetes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gitlab-ci
next-kubernetes
Commits
6fa3ad33
Commit
6fa3ad33
authored
4 years ago
by
Marco Wettstein
Browse files
Options
Downloads
Patches
Plain Diff
feat: extract node version from .nvmrc
parent
40566343
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
feat: extract node version from .nvmrc
Pipeline
#88910
passed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
next-kubernetes.yml
+8
-2
8 additions, 2 deletions
next-kubernetes.yml
with
8 additions
and
2 deletions
next-kubernetes.yml
+
8
−
2
View file @
6fa3ad33
...
...
@@ -12,12 +12,18 @@ include:
EOF
fi
if [ ! -f .nvmrc ]; then
NODE_VERSION=14
else
NODE_VERSION="$(cat .nvmrc| sed '/^$/d' | sed 's/[a-z-]//g')"
fi
if [ ! -f Dockerfile ]; then
echo "Creating Dockerfile"
cat > Dockerfile <<EOF
FROM node:
14
-alpine
FROM node:
$NODE_VERSION
-alpine
WORKDIR /app
RUN apk add --no-cache git
COPY --chown=node:node package.json yarn.lock ./
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment