Add '.drone.yml'
This commit is contained in:
parent
243a2f8c09
commit
2517b804bf
1 changed files with 23 additions and 0 deletions
23
.drone.yml
Normal file
23
.drone.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: python:3.6
|
||||||
|
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:
|
||||||
|
base_url: https://gitea.makerlab-murnau.de
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files: ./*.bin
|
||||||
|
when:
|
||||||
|
event: tag
|
Loading…
Reference in a new issue