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
f61e413e
Commit
f61e413e
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
deploy-on-tuhh for dev branch testing
parent
7ad35445
No related branches found
Branches containing commit
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
#105442
failed
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
+9
-12
9 additions, 12 deletions
.gitlab-ci.yml
with
9 additions
and
12 deletions
.gitlab-ci.yml
+
9
−
12
View file @
f61e413e
...
...
@@ -230,27 +230,24 @@ deploy-on-tuhh:
before_script
:
## install dependencies
-
apk update && apk add openssh-client bash
## 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 -
-
echo "$
REVIEW_SSH_PRIVATE
_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts
-
echo "$
TUH
H_KNOWN_HOSTS" >
>
~/.ssh/known_hosts
-
chmod 700 ~/.ssh
-
echo "$
REVIEW_SS
H_KNOWN_HOSTS" > ~/.ssh/known_hosts
-
chmod 700 ~/.ssh
/known_hosts
script
:
-
mkdir -p .public-tuhh
-
cp -r build-tuhh/*.html .public-tuhh
-
mv .public-tuhh public-tuhh
-
echo "Deploying on www3-dev.tuhh.de"
# 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" build-tuhh/* $TUHH_USER@$TUHH_HOST:$TUHH_DEPLOY/tes
-
ssh -v -p "${REVIEW_SSH_PORT}" "${REVIEW_SSH_USER}"@"${REVIEW_HOST_NAME}" "mkdir -p /usr/local/apache2/htdocs/~dev
-
scp -v -P "${REVIEW_SSH_PORT}" -r build-tuhh/* "${REVIEW_SSH_USER}"@"${REVIEW_HOST_NAME}":"/usr/local/apache2/htdocs/~dev
artifacts
:
paths
:
-
public
-tuhh
-
build
-tuhh
rules
:
-
if
:
$CI_PROJECT_URL != 'https://collaborating.tuhh.de/cfg0846/research-topics-mat-tuhh'
when
:
never
-
if
:
$CI_COMMIT_BRANCH
=
= 'dev'
-
if
:
$CI_COMMIT_BRANCH
!
= 'dev'
when
:
always
# deploy static webpage to web-server via GitLab pages
...
...
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