feat(sreez): Upgrade sreez website to 1.2.0

This commit is contained in:
jeangab 2024-04-15 10:12:12 -04:00
parent 225bb7bbe2
commit d72f4212a3
2 changed files with 7 additions and 12 deletions

View File

@ -8,7 +8,7 @@ image:
repository: registry.nationtech.io/sreez-website
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "v1.1.0"
tag: "v1.2.0"
imagePullSecrets:
- name: nationtech-registry-key

View File

@ -1,24 +1,19 @@
#!/bin/bash
if [[ -z "${1}" ]]
then
echo "Specify the image tag as first argument to this script"
exit 1
fi
REGISTRY=registry.nationtech.io
IMAGE_NAME=sreez-website
TAG="v1.1.0"
TAG="v1.2.0"
IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}"
echo "Going to build and push image ${IMAGE}"
echo -n "Going to build and push image ${IMAGE}. [enter] to continue "
read
docker build -t "${IMAGE}" .
#docker build -t "${IMAGE}" .
docker push "${IMAGE}"
#docker push "${IMAGE}"
echo "Image is built and pushed, do you want to commit and deploy this new version ? (enter to continue, CTRL+C to abort"
echo -n "Image is built and pushed, do you want to commit and deploy this new version ? [enter] to continue, CTRL+C to abort "
read
python ../helm/tools/update_yaml.py ../helm/sreez-website/values.yaml .image.tag "${TAG}"