services?
This commit is contained in:
parent
9ce9a2fd96
commit
8320c7070e
25
.drone.yml
25
.drone.yml
|
@ -6,7 +6,6 @@ steps:
|
||||||
- name: prereq
|
- name: prereq
|
||||||
image: cburki/mosquitto-clients
|
image: cburki/mosquitto-clients
|
||||||
commands:
|
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
|
- mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 | tr -d '\n' >lastknownip
|
||||||
environment:
|
environment:
|
||||||
hostname:
|
hostname:
|
||||||
|
@ -23,9 +22,14 @@ steps:
|
||||||
- cat data/homie/config.json
|
- cat data/homie/config.json
|
||||||
- cat platformio.ini
|
- cat platformio.ini
|
||||||
- pip install -U platformio
|
- pip install -U platformio
|
||||||
|
# Build image
|
||||||
- platformio run --environment d1_mini
|
- platformio run --environment d1_mini
|
||||||
- platformio run --target upload --environment d1_mini
|
# Upload image
|
||||||
- platformio run --target uploadfs --environment d1_mini
|
#### - 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:
|
environment:
|
||||||
hostname:
|
hostname:
|
||||||
from_secret: hostname
|
from_secret: hostname
|
||||||
|
@ -33,10 +37,23 @@ steps:
|
||||||
from_secret: iotssid
|
from_secret: iotssid
|
||||||
iotpwd:
|
iotpwd:
|
||||||
from_secret: iotpwd
|
from_secret: iotpwd
|
||||||
ports: [54321]
|
|
||||||
#- name: release
|
#- name: release
|
||||||
# image: python:3.10 # eclipse/platformio #
|
# image: python:3.10 # eclipse/platformio #
|
||||||
# commands:
|
# commands:
|
||||||
# - pip install -U platformio
|
# - pip install -U platformio
|
||||||
# - platformio run --target upload --environment d1_mini
|
# - platformio run --target upload --environment d1_mini
|
||||||
# - platformio run --target uploadfs --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
|
||||||
|
|
Loading…
Reference in New Issue