Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
research-topics-mat-tuhh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Nuraddin Alexander Gabel
research-topics-mat-tuhh
Commits
c2d602b4
Commit
c2d602b4
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
add rsync-tuhh-deploy job
parent
74c3565b
No related branches found
No related tags found
3 merge requests
!84
Draft: Resolve "create tests for new commandline arguments"
,
!83
Draft: Resolve "deliver css and javascript to www3"
,
!77
Resolve "tuhh-deployment"
Pipeline
#105254
passed
3 years ago
Stage: testing
Stage: build
Stage: review
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-0
31 additions, 0 deletions
.gitlab-ci.yml
with
31 additions
and
0 deletions
.gitlab-ci.yml
+
31
−
0
View file @
c2d602b4
...
...
@@ -336,6 +336,37 @@ master-deploy:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"master"'
when
:
always
rsync-tuhh-deploy
:
stage
:
deploy
image
:
name
:
alpine:latest
before_script
:
## install dependencies
-
apk update && apk add openssh-client bash rsync
## see https://docs.gitlab.com/ee/ci/ssh_keys/ for comments
#- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
-
eval $(ssh-agent -s)
-
echo "$TUHH_SSH_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts
-
echo "$TUHH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
-
chmod 700 ~/.ssh
script
:
-
mkdir -p .public-tuhh
-
cp -r build-tuhh/*.html .public-tuhh
-
mv .public-tuhh public-tuhh
# deploy webpage on tuhh
#- echo 'scp -v public-tuhh' "$TUHH_USER@$TUHH_HOST:$TUHH_DEPLOY"
#- scp -v -r public-tuhh "$TUHH_USER@$TUHH_HOST:$TUHH_DEPLOY"
-
rsync -v -r -a --delete -e "ssh" public-tuhh/ TUHH_USER@$TUHH_HOST:$TUHH_DEPLOY/test
artifacts
:
paths
:
-
public-tuhh
rules
:
-
if
:
$CI_PROJECT_URL != 'https://collaborating.tuhh.de/cfg0846/research-topics-mat-tuhh'
when
:
never
-
if
:
$CI_COMMIT_BRANCH == '40-tuhh-deployment'
when
:
always
# uncomment for manual stopping
#stop_review_app:
...
...
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