This commit is contained in:
2018-10-07 11:55:13 +02:00
parent 226a72261b
commit 42016b8e53

View File

@@ -26,15 +26,15 @@ firmware:
release: release:
stage: deploy stage: deploy
only: only:
- master - /^release/.*$/
image: python:latest image: python:latest
script: script:
- pip install awscli - pip install awscli
- mkdir release - mkdir ${CI_COMMIT_TAG}
- mv .pioenvs/build/firmware.bin release - mv .pioenvs/build/firmware.bin ${CI_COMMIT_TAG}
- mv .pioenvs/build/spiffs.bin release - mv .pioenvs/build/spiffs.bin ${CI_COMMIT_TAG}
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin" - aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
artifacts: artifacts:
paths: paths:
- release - ${CI_COMMIT_TAG}