mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 01:42:22 +01:00
Merge branch 'master' into 'separation'
# Conflicts: # data/pixelConfig.json
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
image: python:2.7-stretch
|
image: python:2.7-stretch
|
||||||
|
|
||||||
|
variables:
|
||||||
|
S3_BUCKET_NAME: "wirelos"
|
||||||
|
PROJECT_NAME: "illucat"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- build
|
- build
|
||||||
- production
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
@@ -22,11 +26,16 @@ firmware:
|
|||||||
- pio run -t buildfs
|
- pio run -t buildfs
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: production
|
stage: release
|
||||||
|
only:
|
||||||
|
- /^release-.*$/
|
||||||
|
image: python:latest
|
||||||
script:
|
script:
|
||||||
- mkdir release
|
- pip install awscli
|
||||||
- mv .pioenvs/build/firmware.bin release
|
- mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||||
- mv .pioenvs/build/spiffs.bin release
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- release
|
- ${PROJECT_NAME}/${CI_COMMIT_TAG}
|
||||||
|
|||||||
Reference in New Issue
Block a user