2021-12-22 11:21:09 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-12-22 11:23:21 +00:00
|
|
|
- name: build
|
|
|
|
image: python:3.6
|
|
|
|
commands:
|
|
|
|
- "pip install -U platformio"
|
2021-12-22 11:25:06 +00:00
|
|
|
#- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
2021-12-22 11:23:21 +00:00
|
|
|
- "platformio run --environment esp8266"
|
|
|
|
- cp .pio/build/esp8266/firmware.bin esp8266.bin
|
2021-12-22 11:21:09 +00:00
|
|
|
|
2021-12-22 11:23:21 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
2021-12-22 11:36:57 +00:00
|
|
|
base_url: https://gitea.makerlab-murnau.de
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
2021-12-22 11:40:46 +00:00
|
|
|
files: ./*.bin
|
2021-12-22 11:23:21 +00:00
|
|
|
when:
|
|
|
|
event: tag
|