diff options
author | liamfallon <liam.fallon@est.tech> | 2022-01-12 13:24:54 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2022-01-17 12:17:19 +0000 |
commit | b76315a09b466166a6eec6f0b22f58d3e432c7b9 (patch) | |
tree | 7ee40804ba9dc245237b2047064516bf9c849d9e /integration/src/release_scripts/updateOomImages.sh | |
parent | 0c3008fd6b925edc26c282901fafac17d516abff (diff) |
Add release script, fix sed for MacOS
This commit:
- Adds a releease phase script that somewhat automates releases
- updates the scritps to use GNU sed on MacOS
Issue-ID: POLICY-3835
Change-Id: I2b79c6a3cc3476280ac00a2288e3cb8686ee976a
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'integration/src/release_scripts/updateOomImages.sh')
-rwxr-xr-x | integration/src/release_scripts/updateOomImages.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/integration/src/release_scripts/updateOomImages.sh b/integration/src/release_scripts/updateOomImages.sh index 52459d5d..e5a7d39c 100755 --- a/integration/src/release_scripts/updateOomImages.sh +++ b/integration/src/release_scripts/updateOomImages.sh @@ -26,6 +26,14 @@ SCRIPT_NAME=`basename $0` repo_location="./" release_data_file="./pf_release_data.csv" +# Use the bash internal OSTYPE variable to check for MacOS +if [[ "$OSTYPE" == "darwin"* ]] +then + SED="gsed" +else + SED="sed" +fi + declare -a pf_repos=( "policy/parent" "policy/docker" @@ -154,7 +162,7 @@ do find $repo_location/oom/kubernetes/policy/components \ -name values.yaml \ -exec \ - sed -i \ + $SED -i \ "s/^image:[ |\t]*onap\/$docker_image:[0-9]*\.[0-9]*\.[0-9]*$/image: onap\/$new_image/" {} \; echo "OOM image $docker_image:$latest_released_tag updated" done |