Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cesium2s
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
clients
Cesium-grp
cesium2s
Commits
28e77e51
Commit
28e77e51
authored
1 year ago
by
demarmax
Browse files
Options
Downloads
Patches
Plain Diff
[fix] gitlab-ci
parent
5d616866
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#36242
waiting for manual action
Stage: build
Stage: package
Stage: release
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-4
7 additions, 4 deletions
.gitlab-ci.yml
with
7 additions
and
4 deletions
.gitlab-ci.yml
+
7
−
4
View file @
28e77e51
...
...
@@ -67,7 +67,7 @@ variables:
image
:
${CI_BUILD_IMAGE}
tags
:
[
kepler
]
before_script
:
-
if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
#
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
# Get project dependencies
-
ls -artl "${BUILD_CACHE_DIR}"
-
ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules
...
...
@@ -96,18 +96,20 @@ variables:
image
:
${CI_BUILD_ELECTRON_IMAGE}
tags
:
[
kepler
]
before_script
:
-
if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
#
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
-
npm install
-
npm run electron:install
-
npm version
.configure-webext-template
:
&webext-setup
image
:
${CI_BUILD_IMAGE}
tags
:
[
kepler
]
before_script
:
-
if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
#
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
-
ls -artl "${BUILD_CACHE_DIR}"
-
ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules
-
npm install web-ext
-
npm version
# ---------------------------------------------------------------
# Environment jobs : Create docker image for builds/release, this
...
...
@@ -354,7 +356,7 @@ gitlab-release:
needs
:
[
release
]
image
:
${CI_BUILD_IMAGE}
script
:
-
if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
#
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
# Copy cached dependencies and build
-
ls -artl "${BUILD_CACHE_DIR}"
-
ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules
...
...
@@ -371,6 +373,7 @@ gitlab-release:
-
if ! zip -q -r "${releaseFile}" . ; then echo "Cannot create the archive for the web artifact"; exit 1; fi
-
cd ${CI_PROJECT_DIR}
-
npm run release:upload_file --token=${CI_JOB_TOKEN} "${CI_PROJECT_NAME}" "${APP_VERSION}" "${releaseFile}" "link_release"
-
npm version
artifacts
:
paths
:
-
release
...
...
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