diff --git a/.drone.yml b/.drone.yml index 4451cff..377660a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,11 +6,13 @@ steps: - name: build image: python:3.10 commands: + - "sed -i data/homie/config.json 's/WIFISSID/${iotssid}/'" + - "sed -i data/homie/config.json 's/WIFIPASS/${iotpwd}/'" + - "sed -i data/homie/config.json 's/HOSTNAME/${hostname}/g'" + - "sed -i data/homie/config.json 's/HOSTNAME/${hostname}/g'" + - "sed -i platformio.ini 's/HOSTNAME/${hostname}/g'" - "pip install -U platformio" - "platformio run --environment esp8266" - - "sed -i date/homie/config.json 's/WIFISSID/${iotssid}/'" - - "sed -i date/homie/config.json 's/WIFIPASS/${iotpwd}/'" - - "sed -i date/homie/config.json 's/HOSTNAME/${hostname}/g'" - "platformio run --target upload --environment d1_mini" - "platformio run --target uploadfs --environment d1_mini" - name: release