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
a25fec74
Commit
a25fec74
authored
1 week ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(deploy): composer package version and name
parent
eba85675
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/deploy.yml
+7
-3
7 additions, 3 deletions
includes/deploy.yml
with
7 additions
and
3 deletions
includes/deploy.yml
+
7
−
3
View file @
a25fec74
...
...
@@ -41,9 +41,13 @@ build to deploy:
-
cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
if [ -d "/tmp/release/.wordpress-org" ]; then mkdir ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}/.wordpress-org && cp -rf /tmp/release/.wordpress-org/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}/.wordpress-org; fi
-
cd ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
php -d memory_limit=-1 /usr/local/bin/composer config version ${CI_COMMIT_REF_SLUG}
-
php -d memory_limit=-1 /usr/local/bin/composer config name ${COMPOSER_NAMESPACE}/${CI_PROJECT_NAME}
-
php -d memory_limit=-1 /usr/local/bin/composer install --no-dev --no-progress --optimize-autoloader --prefer-dist
-
|
if [[ -n "$CI_COMMIT_TAG" ]]; then
php -d memory_limit=-1 /usr/local/bin/composer config version $CI_COMMIT_TAG;
php -d memory_limit=-1 /usr/local/bin/composer config name ${COMPOSER_NAMESPACE}/${CI_PROJECT_NAME}
php -d memory_limit=-1 /usr/local/bin/composer config type "wordpress-plugin"
php -d memory_limit=-1 /usr/local/bin/composer install --no-dev --no-progress --optimize-autoloader --prefer-dist
fi
-
rm -f auth.json
-
rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon phpunit.xml acceptance test_soap.php .gitlab
-
rm -rf composer.lock auth.json phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar functional tmp_artifacts .tmp tools codeception.dist.yml .env.testing wp-install.sh
...
...
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