Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
70f6ae62
Commit
70f6ae62
authored
7 years ago
by
Krzysiek
Browse files
Options
Downloads
Patches
Plain Diff
fix for deploy + slack messages 1.10.5
parent
b00f9020
No related branches found
No related tags found
1 merge request
!8
fix for deploy + slack messages 1.10.5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-4
9 additions, 4 deletions
.gitlab-ci.yml
with
9 additions
and
4 deletions
.gitlab-ci.yml
+
9
−
4
View file @
70f6ae62
#1.10.5
before_script
:
-
cd ${CI_PROJECT_DIR}
...
...
@@ -136,12 +137,14 @@ build to deploy:
-
rm -rf ${CI_PROJECT_DIR}/release ${CI_PROJECT_DIR}/release.zip /tmp/release
-
mkdir /tmp/release
-
mkdir ${CI_PROJECT_DIR}/release
-
mkdir ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
-
cp -rf ${CI_PROJECT_DIR}/* /tmp/release
-
cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release
-
cd ${CI_PROJECT_DIR}/release
-
composer install --no-dev --no-progress
-
cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release
/${CI_PROJECT_NAME}
-
cd ${CI_PROJECT_DIR}/release
/${CI_PROJECT_NAME}
#
- composer install --no-dev --no-progress
-
rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon \
composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar
-
cd ../
-
zip -r -q ../release.zip ./
only
:
-
tags
...
...
@@ -155,6 +158,7 @@ deploy to shop:
script
:
-
ls -l
-
/tmp/deploy_shop.sh ${CI_PROJECT_NAME} release.zip ${CI_PROJECT_NAME}.zip
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
sklepu
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/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'
only
:
-
tags
environment
:
...
...
@@ -172,7 +176,8 @@ deploy to repository:
-
ls -l
-
rm -rf /tmp/svn-repository
-
mkdir /tmp/svn-repository
-
/tmp/deploy_repository.sh ${CI_PROJECT_NAME} release /tmp/svn-repository
-
/tmp/deploy_repository.sh ${CI_PROJECT_NAME} release/${CI_PROJECT_NAME} /tmp/svn-repository
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
repozytorium
WP
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/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'
only
:
-
tags
environment
:
...
...
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