add aws deployment

This commit is contained in:
2018-10-06 15:54:13 +02:00
parent 9c6ec9b231
commit b93b0eb5d7

View File

@@ -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