mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-18 10:46:40 +01:00
Compare commits
8 Commits
color-pot
...
release-1.
| Author | SHA1 | Date | |
|---|---|---|---|
| 7df62eb791 | |||
| 4e12242a15 | |||
| 61ff9f146a | |||
| 42016b8e53 | |||
| 226a72261b | |||
| 3f0439a683 | |||
| 92bc03ec21 | |||
| b93b0eb5d7 |
@@ -1,9 +1,13 @@
|
||||
image: python:2.7-stretch
|
||||
|
||||
variables:
|
||||
S3_BUCKET_NAME: "wirelos"
|
||||
PROJECT_NAME: "illucat"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
- production
|
||||
- test
|
||||
- release
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
@@ -22,11 +26,16 @@ firmware:
|
||||
- pio run -t buildfs
|
||||
|
||||
release:
|
||||
stage: production
|
||||
stage: release
|
||||
only:
|
||||
- /^release-.*$/
|
||||
image: python:latest
|
||||
script:
|
||||
- mkdir release
|
||||
- mv .pioenvs/build/firmware.bin release
|
||||
- mv .pioenvs/build/spiffs.bin release
|
||||
- pip install awscli
|
||||
- mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||
- mv .pioenvs/build/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||
- mv .pioenvs/build/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
|
||||
artifacts:
|
||||
paths:
|
||||
- release
|
||||
- ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pin": 4,
|
||||
"length": 300,
|
||||
"length": 32,
|
||||
"brightness": 64,
|
||||
"updateInterval": 50,
|
||||
"defaultColor": 100
|
||||
|
||||
Reference in New Issue
Block a user