Misc. CICD fixes
Build, push image, and notify Watchtower / build-image (push) Failing after 55s
Build, push image, and notify Watchtower / notify (push) Has been skipped

This commit is contained in:
2026-07-16 17:16:35 +02:00
parent d7889a7bbc
commit 4a3c4b8c96
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -28,12 +28,12 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
run: | run: |
docker build -t git.matthiasg.dev/ninluc/smartwave-api:latest . docker build --file cloud/Dockerfile -t git.matthiasg.dev/ninluc/smartwave-api:latest .
docker push git.matthiasg.dev/ninluc/smartwave-api:latest docker push --file cloud/Dockerfile git.matthiasg.dev/ninluc/smartwave-api:latest
notify: notify:
needs: build-image needs: build-image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Notify Watchtower - 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
View File
@@ -14,7 +14,8 @@ app = Flask(__name__)
# --------------------------------------------------------- # ---------------------------------------------------------
# Configure MongoDB connection (adjust the URI as needed for your environment) # 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"] db = client["microwave_network_db"]
cooking_collection = db["cooking_parameters"] cooking_collection = db["cooking_parameters"]
device_network_collection = db["device_network"] device_network_collection = db["device_network"]