2022-06-07 18:14:58 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: build
|
2022-06-07 18:16:28 +00:00
|
|
|
image: python:3.10
|
2022-06-07 18:14:58 +00:00
|
|
|
commands:
|
2022-06-07 19:44:26 +00:00
|
|
|
- sed -i "s/WIFISSID/$IOTSSID/" data/homie/config.json
|
|
|
|
- sed -i "s/WIFIPASS/${iotpwd}/" data/homie/config.json
|
|
|
|
- sed -i "s/HOSTNAME/${hostname}/g" data/homie/config.json
|
|
|
|
- sed -i "s/HOSTNAME/${hostname}/g" data/homie/config.json
|
|
|
|
- sed -i "s/HOSTNAME/${hostname}/g" platformio.ini
|
2022-06-07 19:40:11 +00:00
|
|
|
- pip install -U platformio"
|
|
|
|
- platformio run --environment esp8266"
|
|
|
|
- platformio run --target upload --environment d1_mini"
|
|
|
|
- platformio run --target uploadfs --environment d1_mini"
|
2022-06-07 18:14:58 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
2022-06-07 18:16:28 +00:00
|
|
|
base_url: https://gitea.ctdo.de
|
2022-06-07 18:14:58 +00:00
|
|
|
files: ./*.bin
|
2022-06-07 19:29:06 +00:00
|
|
|
hostname:
|
2022-06-07 18:16:28 +00:00
|
|
|
from_secret: hostname
|
2022-06-07 19:41:28 +00:00
|
|
|
IOTSSID:
|
2022-06-07 19:10:14 +00:00
|
|
|
from_secret: iotssid
|
|
|
|
iotpwd:
|
|
|
|
from_secret: iotpwd
|
2022-06-07 18:14:58 +00:00
|
|
|
when:
|
|
|
|
event: tag
|