Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
ahiqar
ahiqar-tido
Commits
f6fc2b12
Commit
f6fc2b12
authored
Jul 24, 2021
by
Mathias Goebel
Browse files
ci: fix upload syriac
parent
41cba3ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f6fc2b12
...
...
@@ -61,6 +61,7 @@ update_backend-develop:
-
develop
script
:
-
*ssh
# set entry point for develop
-
sed -i "s ahikar.*\.sub ahikar-dev.sub g" tido/dist/index.html
# arabic-karshuni
## remove old version
...
...
@@ -69,15 +70,23 @@ update_backend-develop:
## upload new version
-
scp -o 'StrictHostKeyChecking no' -r tido/dist/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/arabic-karshuni/
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "cp -r ~/$CI_COMMIT_REF_NAME/frontend/arabic-karshuni/* ~/test/frontend/arabic-karshuni/"
## set entry point for test
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "sed -i 's ahikar-dev.*\.sub ahikar-test.sub g' ~/test/frontend/arabic-karshuni/index.html
# syriac
## remove old version
-
sed -i 's/textapi\/ahikar\/arabic-karshuni/textapi\/ahikar\/syriac/' tido/dist/index.html
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/syriac/*"
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/test/frontend/syriac/*"
## upload new version
-
scp -o 'StrictHostKeyChecking no' -r tido/dist/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/syriac/
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "cp -r ~/$CI_COMMIT_REF_NAME/frontend/arabic-karshuni/* ~/test/frontend/syriac/"
## set entry point for test
-
ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "sed -i 's ahikar-dev.*\.sub ahikar-test.sub g' ~/test/frontend/syriac/index.html
# upload css
-
scp -o 'StrictHostKeyChecking no' ahikar.css $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/
-
scp -o 'StrictHostKeyChecking no' ahikar.css $SSH_USER@$SSH_IP:~/test/frontend/
update_backend-main
:
stage
:
update-backend
image
:
rsamban/scp-resource:latest
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment