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
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "pip install -U platformio"
|
2021-05-09 19:05:35 +00:00
|
|
|
- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
|
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:
|
|
|
|
- "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
|
|
|
|