add latest tag with prod release
This commit is contained in:
17
others/scripts/bumpLatest.sh
Normal file
17
others/scripts/bumpLatest.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
VERSION=$(cat ./package.json | jq -r .version)
|
||||
IMAGE=coollabsio/coolify
|
||||
echo "Pulling $IMAGE:$VERSION"
|
||||
docker pull $IMAGE:$VERSION
|
||||
|
||||
echo "Tagging $IMAGE:$VERSION as $IMAGE:latest"
|
||||
docker tag $IMAGE:$VERSION $IMAGE:latest
|
||||
|
||||
echo "Pushing $IMAGE:latest"
|
||||
read -p "Are you sure you want to push $IMAGE:latest? (y/n) " -n 1 -r
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker push $IMAGE:latest
|
||||
Reference in New Issue
Block a user