Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Dorian Zedler | 5c3a33b162 | |
Dorian Zedler | e92056c70a | |
Dorian Zedler | 28b8229b50 | |
Dorian Zedler | 8dc8e6f1a2 |
39
.drone.yml
39
.drone.yml
|
@ -1,23 +1,18 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
pipeline:
|
||||
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
|
||||
|
||||
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
|
||||
release:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.makerlab-murnau.de
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: ./*.bin
|
||||
when:
|
||||
event: tag
|
|
@ -1,10 +0,0 @@
|
|||
image: python:3.6
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
job:
|
||||
stage: build
|
||||
script: "platformio run"
|
||||
- "pip install -U platformio"
|
||||
- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
|
@ -1,13 +0,0 @@
|
|||
image: python:3.6
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- "pip install -U platformio"
|
||||
- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
||||
|
||||
job:
|
||||
stage: build
|
||||
script: "platformio run"
|
||||
|
Loading…
Reference in New Issue