Improved deploy and build scripts
This commit is contained in:
13
docker/deploy.sh
Executable file
13
docker/deploy.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
GIT_HASH=$(git rev-parse --short HEAD)
|
||||
|
||||
cp ../pyutils/utils.py ../upsmon/
|
||||
cp ../pyutils/utils.py ../routermon/
|
||||
|
||||
docker compose build --build-arg BUILD_VER=${GIT_HASH}
|
||||
|
||||
rm ../upsmon/utils.py
|
||||
rm ../routermon/utils.py
|
||||
|
||||
docker compose up -d
|
||||
Reference in New Issue
Block a user