Changed the build system. Now I am targeting multi arch. Added Product Version and SkuVersion
This commit is contained in:
17
deploy.sh
17
deploy.sh
@ -12,25 +12,12 @@ else
|
||||
./version_bump.sh
|
||||
fi
|
||||
|
||||
# Download the package.json for caching
|
||||
curl --silent 'https://git.tanshu.com/tanshu/brewman/raw/tag/latest/overlord/package.json' \
|
||||
| sed 's/\"version\": \"[0-9\.]*\"/"version": "0.0.0"/g' \
|
||||
> "$parent_path/docker/app/package.json"
|
||||
|
||||
# Download the package.json for caching
|
||||
curl --silent 'https://git.tanshu.com/tanshu/brewman/raw/tag/latest/brewman/pyproject.toml' \
|
||||
| sed 's/version = \"[0-9\.]*\"/version = "0.0.0"/g' \
|
||||
> "$parent_path/docker/app/pyproject.toml"
|
||||
|
||||
|
||||
cd "$parent_path/docker/app" || exit
|
||||
docker build --tag brewman:latest .
|
||||
make build-production
|
||||
if [ 1 -eq "$#" ]
|
||||
then
|
||||
docker tag brewman:latest "$1"
|
||||
else
|
||||
echo "No version bump"
|
||||
fi
|
||||
cd "$parent_path/docker" || exit
|
||||
docker save brewman:latest | bzip2 | pv | ssh gondor 'bunzip2 | sudo docker load'
|
||||
cd "$parent_path/ansible" || exit
|
||||
ansible-playbook --inventory hosts playbook.yml
|
||||
|
||||
Reference in New Issue
Block a user