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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment Client
Merge requests
!1
support custom phase per project
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
support custom phase per project
5927-overide-phase-per-project
into
master
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
5927-overide-phase-per-project
into
master
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
03d990fb
Prev
Next
Show latest version
1 file
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
03d990fb
support custom phase per project
· 03d990fb
Hahn Axel (hahn)
authored
2 years ago
deploy_app.sh
+
8
−
2
View file @ 03d990fb
Edit in single-file editor
Open in Web IDE
Show full file
@@ -12,6 +12,7 @@
# 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
# 2022-11-24 v0.8 <axel.hahn@iml.unibe.ch> tar -xzf without dot as 2nd param
# 2022-11-24 v0.9 <axel.hahn@iml.unibe.ch> support custom phase per project
# ======================================================================
@@ -132,6 +133,7 @@ function run_task(){
function
deploy
(){
local
dlparams
skipmessage
=
"SKIP: no newer download file. You can use parameter -f to force reinstall."
# ----------------------------------------------------------------------
@@ -140,9 +142,13 @@ function deploy(){
# ----------------------------------------------------------------------
header
"Download
${
IMLCI_PROJECT
}
.tgz"
header
"Download
${
IML
}
${
IMLCI_PROJECT
}
.tgz"
typeset
-i
local
isupdate
=
$defaultupdate
${
selfdir
}
/bin/getfile.sh
-f
${
IMLCI_PROJECT
}
.tgz
-o
${
downloadtmp
}
# getfile.sh reads phase from its cfg file - we need to add it as parameter
test
-n
"
${
IMLCI_PHASE
}
"
&&
dlparams
=
"
$dlparams
-e
${
IMLCI_PHASE
}
"
${
selfdir
}
/bin/getfile.sh
${
dlparams
}
-f
${
IMLCI_PROJECT
}
.tgz
-o
${
downloadtmp
}
if
[
$?
-ne
0
]
;
then
echo
Download failed.
echo
Repeating request with debug param
-d
to get the error...
Loading