services?

This commit is contained in:
starcalc 2022-06-08 00:04:33 +02:00
parent 9ce9a2fd96
commit 8320c7070e
1 changed files with 21 additions and 4 deletions

View File

@ -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