diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe22ab2..44da3bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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