Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment Client
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
IML Open Source
Imldeployment Client
Commits
3d1b106f
Commit
3d1b106f
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
support custom phase + file per project
parent
3ef6e248
No related branches found
No related tags found
1 merge request
!1
support custom phase per project
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy_app.sh
+17
-5
17 additions, 5 deletions
deploy_app.sh
with
17 additions
and
5 deletions
deploy_app.sh
+
17
−
5
View file @
3d1b106f
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# 2021-11-01 v0.6 <axel.hahn@iml.unibe.ch> save config diffs
# 2021-11-01 v0.6 <axel.hahn@iml.unibe.ch> save config diffs
# 2021-11-02 v0.7 <axel.hahn@iml.unibe.ch> delete logs keping N files
# 2021-11-02 v0.7 <axel.hahn@iml.unibe.ch> delete logs keping N files
# 2022-11-24 v0.8 <axel.hahn@iml.unibe.ch> tar -xzf without dot as 2nd param
# 2022-11-24 v0.8 <axel.hahn@iml.unibe.ch> tar -xzf without dot as 2nd param
# 2022-11-25 v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project
# 2022-11-25 v0.9 <axel.hahn@iml.unibe.ch> support custom phase
+ file
per project
# ======================================================================
# ======================================================================
...
@@ -76,9 +76,17 @@ function setprofile(){
...
@@ -76,9 +76,17 @@ function setprofile(){
fi
fi
echo
"OK, profile [
${
profile
}
] was set."
echo
"OK, profile [
${
profile
}
] was set."
downloadfile
=
"
${
tmpdir
}
/
${
IMLCI_PROJECT
}
.tgz"
local
localfile
downloadtmp
=
"
${
tmpdir
}
/
${
IMLCI_PROJECT
}
.tgz.tmp"
if
[
-n
"
$IMLCI_FILE
"
]
;
then
cfgdiff
=
"
${
tmpdir
}
/
${
IMLCI_PROJECT
}
_cfgdiff.txt"
localfile
=
"
${
IMLCI_PROJECT
}
__
${
IMLCI_FILE
}
"
else
IMLCI_FILE
=
"
${
IMLCI_PROJECT
}
.tgz"
localfile
=
"
${
IMLCI_FILE
}
"
fi
downloadfile
=
"
${
tmpdir
}
/
${
localfile
}
"
downloadtmp
=
"
${
tmpdir
}
/
${
localfile
}
.tmp"
cfgdiff
=
"
${
tmpdir
}
/
${
localfile
}
_cfgdiff.txt"
test
-f
"
${
cfgdiff
}
"
&&
rm
-f
"
${
cfgdiff
}
"
test
-f
"
${
cfgdiff
}
"
&&
rm
-f
"
${
cfgdiff
}
"
}
}
...
@@ -149,7 +157,11 @@ function deploy(){
...
@@ -149,7 +157,11 @@ function deploy(){
# getfile.sh reads phase from its cfg file - we need to add it as parameter
# getfile.sh reads phase from its cfg file - we need to add it as parameter
test
-n
"
${
IMLCI_PHASE
}
"
&&
dlparams
=
"
$dlparams
-e
${
IMLCI_PHASE
}
"
test
-n
"
${
IMLCI_PHASE
}
"
&&
dlparams
=
"
$dlparams
-e
${
IMLCI_PHASE
}
"
${
selfdir
}
/bin/getfile.sh
${
dlparams
}
-f
${
IMLCI_PROJECT
}
.tgz
-o
${
downloadtmp
}
# set the filename to fetch
test
-n
"
$IMLCI_FILE
"
||
dlparams
=
"
$dlparams
-f
${
IMLCI_PROJECT
}
.tgz"
test
-n
"
$IMLCI_FILE
"
&&
dlparams
=
"
$dlparams
-f
$IMLCI_FILE
"
${
selfdir
}
/bin/getfile.sh
${
dlparams
}
-o
${
downloadtmp
}
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
Download failed.
echo
Download failed.
echo
Repeating request with debug param
-d
to get the error...
echo
Repeating request with debug param
-d
to get the error...
...
...
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