Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
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
clients
Cesium-grp
Cesium
Commits
4b54fd85
Commit
4b54fd85
authored
3 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] FIx CI build
parent
40b9adc5
No related branches found
No related tags found
No related merge requests found
Pipeline
#12977
failed
3 years ago
Stage: build
Stage: alt_build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-7
13 additions, 7 deletions
.gitlab-ci.yml
with
13 additions
and
7 deletions
.gitlab-ci.yml
+
13
−
7
View file @
4b54fd85
...
...
@@ -58,7 +58,7 @@ build:
extends
:
.build
image
:
${CI_BUILD_IMAGE}
before_script
:
-
mv /.build-cache/node_modules ./
-
mv
/tmp
/.build-cache/node_modules ./
-
yarn run postinstall
only
:
-
develop
...
...
@@ -80,13 +80,19 @@ docker:ci:
script
:
# Prepare the Dockerfile
-
echo 'FROM node:12' > Dockerfile
-
echo 'WORKDIR /.build-cache' >> Dockerfile
-
echo 'RUN mkdir -p /.build-cache' >> Dockerfile
-
echo 'WORKDIR /tmp/.build-cache' >> Dockerfile
-
echo 'COPY ./ ./' >> Dockerfile
-
echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"` > /.build-cache/install-before.txt' >> Dockerfile
-
echo 'RUN yarn' >> Dockerfile
-
echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"` > /.build-cache/install-after.txt' >> Dockerfile
-
echo "RUN diff /.build-cache/install-before.txt /.build-cache/install-after.txt ||
true
" >> Dockerfile
# Store disk usage (before install)
-
echo 'RUN du -s `find /tmp/.cache/yarn -maxdepth 1 | egrep -v "^\.$"` > before.txt' >> Dockerfile
-
echo 'RUN du -s `find node_modules -maxdepth 1 | egrep -v "^\.$"` >> before.txt' >> Dockerfile
# Install dependencies
-
echo 'RUN npm install -g yarn @ionic/cli' >> Dockerfile
-
echo 'RUN yarn install' >> Dockerfile
# Store disk usage (after install)
-
echo 'RUN du -s `find /tmp/.cache/yarn -maxdepth 1 | egrep -v "^\.$"` > after.txt' >> Dockerfile
-
echo 'RUN du -s `find node_modules -maxdepth 1 | egrep -v "^\.$"` >> after.txt' >> Dockerfile
# Force docker to detect any changes
-
echo "RUN diff before.txt after.txt ||
true
" >> Dockerfile
-
echo 'WORKDIR /build' >> Dockerfile
# Build image
-
docker build --no-cache -t ${CI_BUILD_IMAGE} .
...
...
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