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
dc6e1190
Commit
dc6e1190
authored
2 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
feat: deploy to license.wpdesk.dev
parent
3b3880aa
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-shop.yml
+4
-0
4 additions, 0 deletions
gitlab-ci-shop.yml
includes/deploy.yml
+15
-0
15 additions, 0 deletions
includes/deploy.yml
with
20 additions
and
1 deletion
gitlab-ci-1.2.yml
+
1
−
1
View file @
dc6e1190
variables
:
WPDESK_CI_VERSION
:
"
2023.0
5.23
"
WPDESK_CI_VERSION
:
"
2023.0
6.02
"
MYSQL_ROOT_PASSWORD
:
"
mysql"
MYSQL_DATABASE
:
"
wptest"
MYSQL_USER
:
"
mysql"
...
...
This diff is collapsed.
Click to expand it.
gitlab-ci-shop.yml
+
4
−
0
View file @
dc6e1190
...
...
@@ -6,6 +6,10 @@ include:
deploy to shop
:
when
:
on_success
deploy to license
:
when
:
on_success
allow_failure
:
true
deploy to demo NET
:
when
:
on_success
...
...
This diff is collapsed.
Click to expand it.
includes/deploy.yml
+
15
−
0
View file @
dc6e1190
...
...
@@ -136,6 +136,21 @@ deploy to shop:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy to license server
:
<<
:
*job-deploy-template
script
:
-
apt-get install sshpass
-
ssh-keyscan ${WPDESK_LICENSE_HOST} >> ~/.ssh/known_hosts
-
sshpass -p ${WPDESK_LICENSE_PASSWORD} scp -o StrictHostKeyChecking=no release.zip plugin_deploy@${WPDESK_LICENSE_HOST}:/var/www/license/var/files/${CI_PROJECT_NAME}.zip
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<${CI_PROJECT_URL}|${CI_PROJECT_NAME}>
zdeployowany
do
systemu
licencji
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wpdesk license server
url
:
https://license.wpdesk.pl/
except
:
variables
:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy to demo NET
:
<<
:
*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