Commit 164b843b authored by gpernot's avatar gpernot
Browse files

some fixes

parent 75508d6f
...@@ -371,7 +371,7 @@ deploy: ...@@ -371,7 +371,7 @@ deploy:
# when: manual # when: manual
# script: # script:
# - ./CI/deploy-prod.sh # - ./CI/deploy-prod.sh
release-container: release-container:
image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7 image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7
stage: deploy stage: deploy
......
...@@ -6,22 +6,22 @@ staging_area=/home/otbpush/test/staging ...@@ -6,22 +6,22 @@ staging_area=/home/otbpush/test/staging
prod_area=/home/otbpush/test/prod prod_area=/home/otbpush/test/prod
#check if we are dealing with the right packages #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 "pack_suffix=${pack_suffix}"
echo "Renaming binary packages" echo "Renaming binary packages"
# find build_packages/. -name "*.run" \ # find build_packages/. -name "*.run" \
# -exec sh -c 'mv "$1" "${1%.run}${pack_suffix}.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/ ls -all build_packages/
for name in packages_list for name in $packages_list
do do
len=${#name} len=${#name}
#add pack_suffix to the 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 done
# TO REMOVE # TO REMOVE
########### ###########
ls -all build_packages/ ls -all build_packages/
########### ###########
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment