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
b3ee525c
Verified
Commit
b3ee525c
authored
10 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
feat: change plugins demo deploy target
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
642e5738
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
+3
-6
3 additions, 6 deletions
includes/deploy.yml
with
3 additions
and
6 deletions
includes/deploy.yml
+
3
−
6
View file @
b3ee525c
...
...
@@ -171,14 +171,11 @@ deploy to demo NET:
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 "$
PROD_WPDESK
_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
-
chmod 0600 ~/.ssh/id_rsa
-
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}
-
rsync -rlDe 'ssh -p 40022' --delete release/${CI_PROJECT_NAME}/ serwer296287@serwer296287.lh.pl:/home/platne/serwer296287/public_html/demo.wpdesk.pl/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
...
...
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