Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
1d80eacc
Commit
1d80eacc
authored
1 week ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(deploy): plugin to gitlab package registry
parent
6e3d560c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gitlab-ci-1.2.yml
+1
-1
1 addition, 1 deletion
gitlab-ci-1.2.yml
gitlab-ci-free.yml
+7
-0
7 additions, 0 deletions
gitlab-ci-free.yml
includes/deploy.yml
+12
-0
12 additions, 0 deletions
includes/deploy.yml
with
20 additions
and
1 deletion
gitlab-ci-1.2.yml
+
1
−
1
View file @
1d80eacc
variables
:
WPDESK_CI_VERSION
:
"
2025.0
4.03
"
WPDESK_CI_VERSION
:
"
2025.0
7.16
"
MYSQL_ROOT_PASSWORD
:
"
mysql"
MYSQL_DATABASE
:
"
wptest"
MYSQL_USER
:
"
mysql"
...
...
This diff is collapsed.
Click to expand it.
gitlab-ci-free.yml
+
7
−
0
View file @
1d80eacc
...
...
@@ -13,3 +13,10 @@ update wpdesk plugins database:
upload translations to repo
:
when
:
delayed
start_in
:
30 minutes
only
:
refs
:
-
tags
variables
:
-
$WP_ORG_USER
-
$WP_ORG_PASS
-
$UPLOAD_TRANSLATIONS == "true"
This diff is collapsed.
Click to expand it.
includes/deploy.yml
+
12
−
0
View file @
1d80eacc
...
...
@@ -86,6 +86,18 @@ plugin zip:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy gitlab package
:
<<
:
*job-deploy-template
rules
:
-
if
:
$CI_COMMIT_TAG
variables
:
PACKAGE_NAME
:
"
${CI_PROJECT_NAME}"
VERSION
:
"
$CI_COMMIT_TAG"
FILE
:
"
${CI_PROJECT_NAME}-${CI_COMMIT_SHA}.zip"
script
:
-
cp release.zip $FILE
-
'
curl
--header
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
"$FILE"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${VERSION}/${FILE}"'
deploy to shop
:
<<
:
*job-deploy-template
script
:
...
...
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