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:
|
|
|
|
- "pip install -U platformio"
|
|
|
|
#- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
|
|
|
- "platformio run --environment esp8266"
|
|
|
|
- cp .pio/build/esp8266/firmware.bin esp8266.bin
|
|
|
|
- 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
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files: ./*.bin
|
2022-06-07 18:16:28 +00:00
|
|
|
upload_port:
|
|
|
|
from_secret: hostname
|
2022-06-07 18:14:58 +00:00
|
|
|
when:
|
|
|
|
event: tag
|