Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Castopod
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
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
Patryk Miś
Castopod
Commits
89ac4979
Unverified
Commit
89ac4979
authored
3 years ago
by
Yassine Doghri
Browse files
Options
Downloads
Patches
Plain Diff
ci: increase artifacts expire_in for dependencies + reorganise bundle & release jobs
parent
4730411e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+13
-11
13 additions, 11 deletions
.gitlab-ci.yml
scripts/bundle-prepare.sh
+1
-1
1 addition, 1 deletion
scripts/bundle-prepare.sh
with
14 additions
and
12 deletions
.gitlab-ci.yml
+
13
−
11
View file @
89ac4979
...
@@ -14,7 +14,7 @@ php-dependencies:
...
@@ -14,7 +14,7 @@ php-dependencies:
artifacts
:
artifacts
:
paths
:
paths
:
-
vendor/
-
vendor/
expire_in
:
15
mins
expire_in
:
30
mins
js-dependencies
:
js-dependencies
:
stage
:
prepare
stage
:
prepare
...
@@ -24,7 +24,7 @@ js-dependencies:
...
@@ -24,7 +24,7 @@ js-dependencies:
artifacts
:
artifacts
:
paths
:
paths
:
-
node_modules/
-
node_modules/
expire_in
:
15
mins
expire_in
:
30
mins
lint-commit-msg
:
lint-commit-msg
:
stage
:
quality
stage
:
quality
...
@@ -68,13 +68,15 @@ tests:
...
@@ -68,13 +68,15 @@ tests:
bundle
:
bundle
:
stage
:
bundle
stage
:
bundle
before_script
:
# prepare dependencies before bundling
-
chmod +x ./scripts/bundle-prepare.sh
-
./scripts/bundle-prepare.sh
script
:
script
:
# make scripts/bundle.sh executable
# make scripts/bundle.sh executable
-
chmod +x ./scripts/bundle-prepare.sh
-
chmod +x ./scripts/bundle.sh
-
chmod +x ./scripts/bundle.sh
# bundle castopod-host with commit ref as version
# bundle castopod-host with commit ref as version
-
./scripts/bundle-prepare.sh
-
./scripts/bundle.sh ${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHORT_SHA}
-
./scripts/bundle.sh ${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHORT_SHA}
dependencies
:
dependencies
:
-
php-dependencies
-
php-dependencies
...
@@ -90,18 +92,18 @@ bundle:
...
@@ -90,18 +92,18 @@ bundle:
release
:
release
:
stage
:
release
stage
:
release
before_script
:
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
-
git tag | xargs git tag -d
# prepare dependencies before release, both bundle and package scripts will be run by semantic-release
-
chmod +x ./scripts/bundle-prepare.sh
-
./scripts/bundle-prepare.sh
script
:
script
:
# make release scripts executable
# make release scripts executable
-
chmod +x ./scripts/bundle-prepare.sh
-
chmod +x ./scripts/bundle.sh
-
chmod +x ./scripts/bundle.sh
-
chmod +x ./scripts/package.sh
-
chmod +x ./scripts/package.sh
# prepare bundle before release, both bundle and package scripts will be run by semantic-release
-
./scripts/bundle-prepare.sh
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
-
git tag | xargs git tag -d
# run semantic-release script (configured in `.releaserc.json` file)
# run semantic-release script (configured in `.releaserc.json` file)
-
npm run release
-
npm run release
dependencies
:
dependencies
:
...
...
This diff is collapsed.
Click to expand it.
scripts/bundle-prepare.sh
+
1
−
1
View file @
89ac4979
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
# install only production dependencies using the --no-dev option
# install only production dependencies using the --no-dev option
php composer.phar
install
--no-dev
--prefer-dist
--no-ansi
--no-interaction
--no-progress
--ignore-platform-reqs
php composer.phar
install
--no-dev
--prefer-dist
--no-ansi
--no-interaction
--no-progress
--ignore-platform-reqs
# build all production
UI
assets
# build all production
static
assets
(css, js, images, icons, fonts, etc.)
npm run build
npm run build
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