Misc. CICD fixes
This commit is contained in:
@@ -28,12 +28,12 @@ jobs:
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build -t git.matthiasg.dev/ninluc/smartwave-api:latest .
|
||||
docker push git.matthiasg.dev/ninluc/smartwave-api:latest
|
||||
docker build --file cloud/Dockerfile -t git.matthiasg.dev/ninluc/smartwave-api:latest .
|
||||
docker push --file cloud/Dockerfile git.matthiasg.dev/ninluc/smartwave-api:latest
|
||||
|
||||
notify:
|
||||
needs: build-image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Notify Watchtower
|
||||
run: "curl -i -X POST -H \"Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}\" https://watchtower.beermaker.matthiasg.dev/v1/update"
|
||||
run: "curl -i -X POST -H \"Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}\" https://watchtower.smartwave.matthiasg.dev/v1/update"
|
||||
+2
-1
@@ -14,7 +14,8 @@ app = Flask(__name__)
|
||||
# ---------------------------------------------------------
|
||||
|
||||
# Configure MongoDB connection (adjust the URI as needed for your environment)
|
||||
client = MongoClient("mongodb://localhost:27017/")
|
||||
MONGO_URI = os.getenv("MONGO_URI", "mongodb://localhost:27017/")
|
||||
client = MongoClient(MONGO_URI)
|
||||
db = client["microwave_network_db"]
|
||||
cooking_collection = db["cooking_parameters"]
|
||||
device_network_collection = db["device_network"]
|
||||
|
||||
Reference in New Issue
Block a user