mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 01:42:22 +01:00
ci
This commit is contained in:
@@ -6,9 +6,9 @@ stages:
|
|||||||
- production
|
- production
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: ILLUCAT_CACHE
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
- .cache/
|
- .pioenvs/
|
||||||
|
|
||||||
firmware:
|
firmware:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -16,19 +16,21 @@ firmware:
|
|||||||
before_script:
|
before_script:
|
||||||
- pip install -U platformio
|
- pip install -U platformio
|
||||||
script:
|
script:
|
||||||
- mkdir .cache
|
|
||||||
- mv data/example.config.json data/config.json
|
- mv data/example.config.json data/config.json
|
||||||
- pio run -t clean
|
- pio run -t clean
|
||||||
- pio run
|
- pio run
|
||||||
- pio run -t buildfs
|
- pio run -t buildfs
|
||||||
- mv .pioenvs/build/*.bin .cache
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: production
|
stage: production
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- release/*
|
||||||
script:
|
script:
|
||||||
- mkdir release
|
- mkdir release
|
||||||
- mv .cache/firmware.bin release
|
- mv .pioenvs/build/firmware.bin release
|
||||||
- mv .cache/spiffs.bin release
|
- mv .pioenvs/build/spiffs.bin release
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- release
|
- release
|
||||||
|
|||||||
Reference in New Issue
Block a user