Skip to content
Snippets Groups Projects
Commit 1d80eacc authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(deploy): plugin to gitlab package registry

parent 6e3d560c
No related branches found
No related tags found
No related merge requests found
variables:
WPDESK_CI_VERSION: "2025.04.03"
WPDESK_CI_VERSION: "2025.07.16"
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql"
......
......@@ -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"
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment