2021-05-09 18:52:01 +00:00
|
|
|
image: python:3.6
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2021-05-10 14:34:41 +00:00
|
|
|
- release
|
2021-05-09 18:52:01 +00:00
|
|
|
|
2021-05-10 14:34:41 +00:00
|
|
|
esp8266:
|
2021-05-09 18:52:01 +00:00
|
|
|
stage: build
|
2021-05-10 14:34:41 +00:00
|
|
|
script:
|
2021-05-10 16:56:02 +00:00
|
|
|
- "pip install -U platformio"
|
|
|
|
- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
2021-05-10 14:34:41 +00:00
|
|
|
- "platformio run --environment esp8266"
|
|
|
|
- cp .pio/build/esp8266/firmware.bin esp8266.bin
|
2021-05-10 07:13:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2021-05-10 14:34:41 +00:00
|
|
|
- esp8266.bin
|
2021-05-10 07:13:11 +00:00
|
|
|
expire_in: 1 week
|
2021-05-10 14:34:41 +00:00
|
|
|
|
|
|
|
release:
|
2021-05-10 16:22:06 +00:00
|
|
|
image: inetprocess/gitlab-release
|
|
|
|
stage: release
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
dependencies:
|
2021-05-10 16:22:27 +00:00
|
|
|
- esp8266
|
2021-05-10 16:22:06 +00:00
|
|
|
script:
|
|
|
|
- gitlab-release --message '' ./*.bin
|
2021-05-10 14:34:41 +00:00
|
|
|
|