This commit is contained in:
parent
28b8229b50
commit
e92056c70a
1 changed files with 17 additions and 22 deletions
39
.drone.yml
39
.drone.yml
|
@ -1,23 +1,18 @@
|
||||||
---
|
pipeline:
|
||||||
kind: pipeline
|
build:
|
||||||
type: docker
|
image: python:3.6
|
||||||
name: default
|
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
|
||||||
|
|
||||||
steps:
|
release:
|
||||||
- name: build
|
image: plugins/gitea-release
|
||||||
image: python:3.6
|
settings:
|
||||||
commands:
|
base_url: https://git.makerlab-murnau.de
|
||||||
- "pip install -U platformio"
|
api_key:
|
||||||
#- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
from_secret: gitea_token
|
||||||
- "platformio run --environment esp8266"
|
files: ./*.bin
|
||||||
- cp .pio/build/esp8266/firmware.bin esp8266.bin
|
when:
|
||||||
|
event: tag
|
||||||
- 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