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
b640fd79
Commit
b640fd79
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
remove placeholder ci-rev-short-sha; add others read from package json
parent
7c769f52
No related branches found
No related tags found
1 merge request
!22
remove placeholder ci-rev-short-sha; add others read from package json
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy_app.sh
+4
-6
4 additions, 6 deletions
deploy_app.sh
with
4 additions
and
6 deletions
deploy_app.sh
+
4
−
6
View file @
b640fd79
...
...
@@ -19,6 +19,7 @@
# 2023-12-14 v1.2 <axel.hahn@unibe.ch> export some vars; abort on errors
# 2023-12-18 v1.3 <axel.hahn@unibe.ch> add lines to profile log on error
# 2024-02-22 v1.4 <axel.hahn@unibe.ch> create replace_ciserver.txt
# 2024-02-22 v1.5 <axel.hahn@unibe.ch> remove placeholder ci-rev-short-sha; add others read from package json
# ======================================================================
...
...
@@ -26,7 +27,7 @@
# CONFIG
# ----------------------------------------------------------------------
cd
$(
dirname
$0
)
_version
=
1.
4
_version
=
1.
5
export
selfdir
;
selfdir
=
$(
/bin/pwd
)
export
profiledir
...
...
@@ -262,15 +263,12 @@ function deploy(){
exit
4
fi
echo
"# generated with data from
$cijson
"
>
"
$replacefile
"
for
mykey
in
branch
revision
for
mykey
in
branch
branch_short branch_type revision revision_short imagepart
do
civalue
=
$(
cat
"
$cijson
"
| jq
".
${
mykey
}
"
|
tr
-d
'"'
)
civalue
=
$(
cat
"
$
{
cijson
}
"
| jq
".
${
mykey
}
"
|
tr
-d
'"'
)
echo
"ci-
${
mykey
}
=
$civalue
"
>>
"
$replacefile
"
done
# "revision" must be the last mykey that this works:
echo
"ci-rev-short-sha=
${
civalue
:0:8
}
"
>>
"
$replacefile
"
ls
-l
"
$replacefile
"
...
...
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