mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 09:48:21 +01:00
add aws deployment
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
image: python:2.7-stretch
|
image: python:2.7-stretch
|
||||||
|
|
||||||
|
variables:
|
||||||
|
S3_BUCKET_NAME: "wirelos"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- build
|
- build
|
||||||
- production
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
@@ -22,11 +25,14 @@ firmware:
|
|||||||
- pio run -t buildfs
|
- pio run -t buildfs
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: production
|
stage: deploy
|
||||||
|
image: python:latest
|
||||||
script:
|
script:
|
||||||
|
- pip install awscli
|
||||||
- mkdir release
|
- mkdir release
|
||||||
- mv .pioenvs/build/firmware.bin release
|
- mv .pioenvs/build/firmware.bin release
|
||||||
- mv .pioenvs/build/spiffs.bin release
|
- mv .pioenvs/build/spiffs.bin release
|
||||||
|
- aws s3 cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- release
|
- release
|
||||||
|
|||||||
Reference in New Issue
Block a user