This commit is contained in:
2018-10-07 12:40:21 +02:00
parent 4e12242a15
commit 7df62eb791

View File

@@ -2,6 +2,7 @@ image: python:2.7-stretch
variables: variables:
S3_BUCKET_NAME: "wirelos" S3_BUCKET_NAME: "wirelos"
PROJECT_NAME: "illucat"
stages: stages:
- build - build
@@ -31,10 +32,10 @@ release:
image: python:latest image: python:latest
script: script:
- pip install awscli - pip install awscli
- mkdir ${CI_COMMIT_TAG} - mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/firmware.bin ${CI_COMMIT_TAG} - mv .pioenvs/build/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/spiffs.bin ${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" - aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
artifacts: artifacts:
paths: paths:
- ${CI_COMMIT_TAG} - ${PROJECT_NAME}/${CI_COMMIT_TAG}