From 8320c7070e2e20d1bcbc761d3ff23486e47118d5 Mon Sep 17 00:00:00 2001 From: starcalc Date: Wed, 8 Jun 2022 00:04:33 +0200 Subject: [PATCH] services? --- .drone.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6159fa2..5b7230e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,6 @@ steps: - name: prereq image: cburki/mosquitto-clients commands: -# - echo mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 - mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 | tr -d '\n' >lastknownip environment: hostname: @@ -23,9 +22,14 @@ steps: - cat data/homie/config.json - cat platformio.ini - pip install -U platformio + # Build image - platformio run --environment d1_mini - - platformio run --target upload --environment d1_mini - - platformio run --target uploadfs --environment d1_mini + # Upload image + #### - platformio run --target upload --environment d1_mini + # Build Filesystem Image +# - platformio run --target buildfs --environment d1_mini + # (Build if necessary and) Upload Filesystem Image (here: OTA) + ### - platformio run --target uploadfs --environment d1_mini environment: hostname: from_secret: hostname @@ -33,10 +37,23 @@ steps: from_secret: iotssid iotpwd: from_secret: iotpwd - ports: [54321] #- name: release # image: python:3.10 # eclipse/platformio # # commands: # - pip install -U platformio # - platformio run --target upload --environment d1_mini # - platformio run --target uploadfs --environment d1_mini + +services: + redis: + image: python:3.10 + ports: [ 6380 ] + commands: + platformio run --target upload --environment d1_mini + +### matrix-builds? +### https://0-8-0.docs.drone.io/matrix-builds/ +### + + +### https://discourse.drone.io/t/expose-ports-from-service-containers/1736/4