This commit is contained in:
2018-09-24 14:17:27 +02:00
parent 02d0649ea5
commit 0cf7fd0a1e

View File

@@ -6,9 +6,9 @@ stages:
- production
cache:
key: ILLUCAT_CACHE
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache/
- .pioenvs/
firmware:
stage: build
@@ -16,19 +16,21 @@ firmware:
before_script:
- pip install -U platformio
script:
- mkdir .cache
- mv data/example.config.json data/config.json
- pio run -t clean
- pio run
- pio run -t buildfs
- mv .pioenvs/build/*.bin .cache
release:
stage: production
only:
- tags
tags:
- release/*
script:
- mkdir release
- mv .cache/firmware.bin release
- mv .cache/spiffs.bin release
- mv .pioenvs/build/firmware.bin release
- mv .pioenvs/build/spiffs.bin release
artifacts:
paths:
- release