Skip to content

Commit

Permalink
tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shyam-ks committed Nov 18, 2021
1 parent 5cd0b63 commit b5a0052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ set -x
echo "Name: $1"
echo "Version: $2"
echo "Comment: $3"
echo "Tag: $3"
echo "Tag: $4"

if [ ! -f ../package/$1-$2.tgz ]; then

ls
pip install ruamel.yaml
python3 ./utils/update-chart-version.py ./chart/$1/Chart.yaml 'version' $2
python3 ./utils/update-image-tag-helm.py ./charts/$1/values.yaml
python3 ./utils/update-image-tag-helm.py ./charts/$1/values.yaml $4

mkdir -p package
cd package
Expand Down
6 changes: 2 additions & 4 deletions utils/update-image-tag-helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
import ruamel.yaml

print ("File name: %s" % (sys.argv[1]))
print ("Image Name: %s" % (sys.argv[2]))
print ("Tag: %s" % (sys.argv[3]))
print ("Tag: %s" % (sys.argv[2]))
fname = sys.argv[1]
imageName = str(sys.argv[2])
tag = str(sys.argv[3])
tag = str(sys.argv[2])

# Check if file exists
from pathlib import Path
Expand Down

0 comments on commit b5a0052

Please sign in to comment.