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
86c5a713
Commit
86c5a713
authored
3 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(plugin deploy): WP/WC/PHP versions update
parent
01db5103
No related branches found
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
-2
7 additions, 2 deletions
includes/deploy.yml
with
7 additions
and
2 deletions
includes/deploy.yml
+
7
−
2
View file @
86c5a713
.template
:
&job-deploy-template
.template
:
&job-deploy-template
image
:
wpdesknet/amazon-svn-deploy:1
0
image
:
wpdesknet/amazon-svn-deploy:1
1
stage
:
deploy
stage
:
deploy
tags
:
tags
:
-
deploy
-
deploy
...
@@ -89,8 +89,13 @@ build to deploy:
...
@@ -89,8 +89,13 @@ build to deploy:
deploy to shop
:
deploy to shop
:
<<
:
*job-deploy-template
<<
:
*job-deploy-template
script
:
script
:
-
WP_TESTED_UP=`grep -h 'Tested up to' *.php | grep -oE '([0-9]+.?)+'`
-
WP_REQUIRES_AT_LEAST=`grep -h 'Requires at least' *.php | grep -oE '([0-9]+.?)+'`
-
WC_TESTED_UP=`grep -h 'WC tested up to' *.php | grep -oE '([0-9]+.?)+' || echo "not set!"`
-
WC_REQUIRES_AT_LEAST=`grep -h 'WC requires at least' *.php | grep -oE '([0-9]+.?)+' || echo "not set!"`
-
PHP_REQUIRES=`grep -h 'Requires PHP' *.php | grep -oE '([0-9]+.?)+'`
-
echo ${WPDESK_CI_VERSION}
-
echo ${WPDESK_CI_VERSION}
-
/tmp/deploy_shop.sh ${CI_PROJECT_NAME} release.zip ${CI_PROJECT_NAME}.zip
-
/tmp/deploy_shop.sh ${CI_PROJECT_NAME} release.zip ${CI_PROJECT_NAME}.zip
${WP_TESTED_UP} ${WC_TESTED_UP} ${WP_REQUIRES_AT_LEAST} ${WC_REQUIRES_AT_LEAST} ${PHP_REQUIRES}
-
'
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/${SLACK_AUTH}'
-
'
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/${SLACK_AUTH}'
environment
:
environment
:
name
:
wpdesk shop
name
:
wpdesk shop
...
...
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