19 lines
353 B
Bash
Executable File
19 lines
353 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the new version from the command line argument
|
|
new_version=$1
|
|
|
|
if [ -z "$new_version" ]; then
|
|
echo "Usage: $0 <new_version>"
|
|
exit 1
|
|
fi
|
|
|
|
# Bring the stack down
|
|
docker compose down
|
|
|
|
# Update the APP_VERSION value in .env file
|
|
sed -i "s/APP_VERSION=.*$/APP_VERSION=$new_version/" .env
|
|
|
|
# Bring the stack back up
|
|
docker compose up -d
|