Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
164b843b
Commit
164b843b
authored
Dec 11, 2019
by
gpernot
Browse files
some fixes
parent
75508d6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
164b843b
...
...
@@ -371,7 +371,7 @@ deploy:
# when: manual
# script:
# - ./CI/deploy-prod.sh
release-container
:
image
:
$BUILD_IMAGE_REGISTRY/otb-alpine:3.7
stage
:
deploy
...
...
CI/deploy-prod.sh
View file @
164b843b
...
...
@@ -6,22 +6,22 @@ staging_area=/home/otbpush/test/staging
prod_area
=
/home/otbpush/test/prod
#check if we are dealing with the right packages
pack_suffix
=
-
`
echo
"
$CI_COMMIT_TAG
"
|
grep
-o
"rc[0-9]*"
`
# this retrieve the rc number
pack_suffix
=
-
$(
echo
"
$CI_COMMIT_TAG
"
|
grep
-o
"rc[0-9]*"
)
# this retrieve the rc number
echo
"pack_suffix=
${
pack_suffix
}
"
echo
"Renaming binary packages"
# find build_packages/. -name "*.run" \
# -exec sh -c 'mv "$1" "${1%.run}${pack_suffix}.run"' _ {} \;
packages_list
=
`
ls
${
staging_area
}
|
grep
-E
"OTB-[0-9]*.[0-9]*.[0-9]*-.*
\.
(run|zip)"
`
packages_list
=
$(
ls
${
staging_area
}
|
grep
-E
"OTB-[0-9]*.[0-9]*.[0-9]*-.*
\.
(run|zip)"
)
ls
-all
build_packages/
for
name
in
packages_list
do
for
name
in
$
packages_list
do
len
=
${#
name
}
#add pack_suffix to the name
mv
"
$name
"
"
${
name
:0:
$len
-4
}${
pack_suffix
}${
name
:
$len
-4
}
"
mv
"
$name
"
"
${
name
:0:
$len
-4
}${
pack_suffix
}${
name
:
$len
-4
}
"
done
# TO REMOVE
###########
ls
-all
build_packages/
###########
\ No newline at end of file
###########
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment