Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DataCatalog
Commits
3c7c6af9
Commit
3c7c6af9
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
remove git from deploy script
parent
095e43c8
No related branches found
No related tags found
1 merge request
!5
Merge CI/CD changes
Pipeline
#75415
passed
3 years ago
Stage: test
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
deploy_scripts/cloudinit.yml
+1
-1
1 addition, 1 deletion
deploy_scripts/cloudinit.yml
deploy_scripts/deployment.sh
+5
-9
5 additions, 9 deletions
deploy_scripts/deployment.sh
with
8 additions
and
11 deletions
.gitlab-ci.yml
+
2
−
1
View file @
3c7c6af9
...
...
@@ -82,7 +82,8 @@ light-deploy-testing:
TESTING_URL
:
https://zam10036.zam.kfa-juelich.de/
TESTING_DOMAIN
:
zam10036.zam.kfa-juelich.de
script
:
-
ssh -oStrictHostKeyChecking=accept-new apiserver@$TESTING_DOMAIN 'sudo /home/apiserver/datacatalog/deploy_scripts/deployment.sh /home/apiserver/datacatalog $CI_COMMIT_BRANCH $TESTING_URL $TESTING_DOMAIN'
-
ssh -oStrictHostKeyChecking=accept-new apiserver@$TESTING_DOMAIN 'cd /home/apiserver/datacatalog && sudo git pull --all && sudo git checkout -f $CI_COMMIT_BRANCH'
-
ssh -oStrictHostKeyChecking=accept-new apiserver@$TESTING_DOMAIN 'sudo /home/apiserver/datacatalog/deploy_scripts/deployment.sh /home/apiserver/datacatalog $TESTING_URL $TESTING_DOMAIN'
full-deploy-production
:
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
deploy_scripts/cloudinit.yml
+
1
−
1
View file @
3c7c6af9
...
...
@@ -53,4 +53,4 @@ runcmd:
# general startup takes long enough that no delay should bee needed - 5 to 6 minutes until these commands are executed
-
'
export
API_URL=https://datacatalog.fz-juelich.de/'
-
'
export
SERVER_DOMAIN=datacatalog.fz-juelich.de'
-
/bin/bash /home/apiserver/datacatalog/deploy_scripts/deployment.sh /home/apiserver/datacatalog master $API_URL $SERVER_DOMAIN
\ No newline at end of file
-
/bin/bash /home/apiserver/datacatalog/deploy_scripts/deployment.sh /home/apiserver/datacatalog $API_URL $SERVER_DOMAIN
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy_scripts/deployment.sh
+
5
−
9
View file @
3c7c6af9
...
...
@@ -2,24 +2,20 @@
## USAGE:
#
# deployment.sh <git_directory>
[CHECKOUT_TAG]
[API_URL] [SERVER_DOMAIN]
# deployment.sh <git_directory> [API_URL] [SERVER_DOMAIN]
OLD_DIR
=
`
pwd
`
echo
"DEBUG_1
$0
$1
$2
$3
$4
"
echo
"DEBUG_1
$0
$1
$2
$3
"
if
[
-z
${
1
+x
}
]
;
then
NEW_DIR
=
`
pwd
`
;
fi
if
[
-z
${
2
+x
}
]
;
then
CHECKOUT_TAG
=
master
;
else
CHECKOUT_TAG
=
$2
;
fi
if
[
-z
${
3
+x
}
]
;
then
API_URL
=
https://datacatalog.fz-juelich.de/
;
else
API_URL
=
$3
;
fi
if
[
-z
${
4
+x
}
]
;
then
SERVER_DOMAIN
=
datacatalog.fz-juelich.de
;
else
SERVER_DOMAIN
=
$4
;
fi
if
[
-z
${
2
+x
}
]
;
then
API_URL
=
https://datacatalog.fz-juelich.de/
;
else
API_URL
=
$2
;
fi
if
[
-z
${
3
+x
}
]
;
then
SERVER_DOMAIN
=
datacatalog.fz-juelich.de
;
else
SERVER_DOMAIN
=
$3
;
fi
echo
"DEBUG_2
$0
$1
$2
$3
$4
"
echo
"DEBUG_2
$0
$1
$2
$3
"
cd
$NEW_DIR
git pull
--all
git checkout
-f
$CHECKOUT_TAG
pip
install
-r
requirements.txt
python3 frontend/createStatic.py
-u
$API_URL
...
...
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