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
477225db
Commit
477225db
authored
2 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
feat: deploy to demo.wpdesk.pl
parent
fd21ca5b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gitlab-ci-free.yml
+4
-1
4 additions, 1 deletion
gitlab-ci-free.yml
gitlab-ci-shop.yml
+4
-1
4 additions, 1 deletion
gitlab-ci-shop.yml
includes/deploy.yml
+22
-2
22 additions, 2 deletions
includes/deploy.yml
with
30 additions
and
4 deletions
gitlab-ci-free.yml
+
4
−
1
View file @
477225db
...
...
@@ -6,7 +6,10 @@ include:
deploy to repository
:
when
:
on_success
deploy to demo
:
deploy to demo NET
:
when
:
on_success
deploy to demo PL
:
when
:
on_success
deploy to demo octolize
:
...
...
This diff is collapsed.
Click to expand it.
gitlab-ci-shop.yml
+
4
−
1
View file @
477225db
...
...
@@ -6,7 +6,10 @@ include:
deploy to shop
:
when
:
on_success
deploy to demo
:
deploy to demo NET
:
when
:
on_success
deploy to demo PL
:
when
:
on_success
deploy to demo octolize
:
...
...
This diff is collapsed.
Click to expand it.
includes/deploy.yml
+
22
−
2
View file @
477225db
...
...
@@ -105,20 +105,40 @@ deploy to shop:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy to demo
:
deploy to demo
NET
:
<<
:
*job-deploy-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
/tmp/deploy_demo.sh release/${CI_PROJECT_NAME} ${CI_PROJECT_NAME}
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<${CI_PROJECT_URL}|${CI_PROJECT_NAME}>
zdeployowany
do
demo
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wpdesk demo
name
:
wpdesk demo
net
url
:
https://demo.wpdesk.org
except
:
variables
:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy to demo PL
:
<<
:
*job-deploy-template
before_script
:
-
echo "$DEMO_FS_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa_demo_fs
-
chmod 0600 ~/.ssh/id_rsa_demo_fs
-
echo "$SSH_KNOWN_HOSTS" | tr -d '\r' > ~/.ssh/known_hosts
script
:
-
echo ${WPDESK_CI_VERSION}
-
apt-get install sshpass
-
echo "release/${CI_PROJECT_NAME}/ ${DEMO_PL_USERNAME}@${DEMO_PL_SERVER}:/home/${DEMO_PL_USERNAME}/domains/demo.wpdesk.pl/public_html/wp-content/plugins/${CI_PROJECT_NAME}"
-
sshpass -p ${DEMO_PL_PASSWORD} rsync -rlDe 'ssh -p 222' --delete release/${CI_PROJECT_NAME}/ ${DEMO_PL_USERNAME}@${DEMO_PL_SERVER}:/home/${DEMO_PL_USERNAME}/domains/demo.wpdesk.pl/public_html/wp-content/plugins/${CI_PROJECT_NAME}
-
'
curl
-X
POST
--data-urlencode
"payload={\"text\":
\"Projekt
<https://gitlab.com/wpdesk/${CI_PROJECT_NAME}|${CI_PROJECT_NAME}>
zdeployowany
do
demo
PL
w
wersji
${CI_COMMIT_REF_NAME}\",
}"
https://hooks.slack.com/services/${SLACK_AUTH}'
environment
:
name
:
wpdesk demo pl
url
:
https://demo.wpdesk.pl
except
:
variables
:
-
$IS_LIBRARY
-
$IS_NPM_LIBRARY
deploy to demo octolize
:
<<
:
*job-deploy-template
before_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