From b93b0eb5d7fb9d6cd0a57282b9b0de8f2d2c9dd0 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Sat, 6 Oct 2018 15:54:13 +0200 Subject: [PATCH] add aws deployment --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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