add prod stage

This commit is contained in:
2018-09-24 13:44:56 +02:00
parent c984a4a63f
commit 10a28be2c1

View File

@@ -10,7 +10,7 @@ firmware:
stage: build stage: build
image: python:2.7-stretch image: python:2.7-stretch
before_script: before_script:
- "pip install -U platformio" - pip install -U platformio
script: script:
- mv data/example.config.json data/config.json - mv data/example.config.json data/config.json
- pio run -t clean - pio run -t clean
@@ -19,7 +19,10 @@ firmware:
release: release:
stage: production stage: production
script:
- mkdir release
- mv .pioenvs/build/firmware.bin release
- mv .pioenvs/build/spiffs.bin release
artifacts: artifacts:
paths: paths:
- .pioenvs/build/firmware.bin - release
- .pioenvs/build/spiffs.bin