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
|
||||
|
||||
variables:
|
||||
S3_BUCKET_NAME: "wirelos"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
- production
|
||||
- test
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
@@ -22,11 +25,14 @@ firmware:
|
||||
- pio run -t buildfs
|
||||
|
||||
release:
|
||||
stage: production
|
||||
stage: deploy
|
||||
image: python:latest
|
||||
script:
|
||||
- pip install awscli
|
||||
- mkdir release
|
||||
- mv .pioenvs/build/firmware.bin release
|
||||
- mv .pioenvs/build/spiffs.bin release
|
||||
- aws s3 cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
|
||||
artifacts:
|
||||
paths:
|
||||
- release
|
||||
|
||||
Reference in New Issue
Block a user