Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wpct ERP Forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External 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
codeccoop
WordPress
plugins
Wpct ERP Forms
Commits
6ebf3c55
Commit
6ebf3c55
authored
4 months ago
by
Lucas García
Browse files
Options
Downloads
Patches
Plain Diff
fix: gitlab ci config
parent
7638e780
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-4
16 additions, 4 deletions
.gitlab-ci.yml
with
16 additions
and
4 deletions
.gitlab-ci.yml
+
16
−
4
View file @
6ebf3c55
workflow
:
workflow
:
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH
-
if
:
$CI_COMMIT_BRANCH
changes
:
changes
:
-
README.md
-
README.md
-
.gitlab-ci.yml
-
.gitlab-ci.yml
when
:
never
when
:
never
...
@@ -14,6 +14,7 @@ workflow:
...
@@ -14,6 +14,7 @@ workflow:
-
if
:
$CI_COMMIT_TAG =~ /^[0-9]+[.][0-9]+([.][0-9]+)?([-a-z])*$/
-
if
:
$CI_COMMIT_TAG =~ /^[0-9]+[.][0-9]+([.][0-9]+)?([-a-z])*$/
stages
:
# List of stages for jobs, and their order of execution
stages
:
# List of stages for jobs, and their order of execution
-
build
-
package
-
package
-
upload
-
upload
-
release
-
release
...
@@ -30,22 +31,33 @@ variables:
...
@@ -30,22 +31,33 @@ variables:
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_FORCE_HTTPS
:
"
true"
GIT_SUBMODULE_FORCE_HTTPS
:
"
true"
package
:
build
:
stage
:
build
image
:
node:latest
script
:
-
npm install && npm run build
-
find . -name node_modules -type d | xargs rm -rf
artifacts
:
paths
:
-
assets
package
:
image
:
javieraviles/zip:latest
image
:
javieraviles/zip:latest
stage
:
package
stage
:
package
script
:
script
:
-
'
zip
-r
$ZIP
*
-x
"*CODE_OF_CONDUCT.md"
-x
"*node_modules*"
-x
"*bin/*"
-x
"*tests/*"
-x
"*.gitignore"
-x
"*.gitlab-ci.yml"
-x
"*.gitmodules"
-x
"*phpunit.xml.dist"
-x
"*Gruntfile.js"
-x
"*package.json"
-x
"*package-lock.json"
-x
"*.travis.yml"
-x
"*.editorconfig"
-x
"*.distignore"
-x
"*src/*"'
-
'
zip
-r
$ZIP
*
-x
"*CODE_OF_CONDUCT.md"
-x
"*node_modules*"
-x
"*bin/*"
-x
"*tests/*"
-x
"*.gitignore"
-x
"*.gitlab-ci.yml"
-x
"*.gitmodules"
-x
"*.php-cs-fixer.cache"
-x
"*phpunit.xml.dist"
-x
"*Gruntfile.js"
-x
"*package.json"
-x
"*package-lock.json"
-x
"*.travis.yml"
-x
"*.editorconfig"
-x
"*.distignore"
-x
"*src/*"
-x
"*.husky*"
-x
".lintstagedrc.js"
-x
".pretierrc"
-x
".prettierrc-php"
-x
".prettierignore"
-x
"eslint.config.js"
-x
"*.nvimrc*"
'
-
'
ls
-lah'
-
'
ls
-lah'
artifacts
:
artifacts
:
paths
:
paths
:
-
$ZIP
-
$ZIP
upload
:
upload
:
stage
:
upload
stage
:
upload
image
:
curlimages/curl:latest
image
:
curlimages/curl:latest
script
:
script
:
-
|
-
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${ZIP} ${PACKAGE_REGISTRY_URL}/${ZIP}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${ZIP} ${PACKAGE_REGISTRY_URL}/${ZIP}
release
:
release
:
# Caution, as of 2021-02-02 these assets links require a login, see:
# Caution, as of 2021-02-02 these assets links require a login, see:
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
...
...
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