From 7df62eb791250a8d54bb5940add709b144683f90 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Sun, 7 Oct 2018 12:40:21 +0200 Subject: [PATCH] ci --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1b7c88..bbae196 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: python:2.7-stretch variables: S3_BUCKET_NAME: "wirelos" + PROJECT_NAME: "illucat" stages: - build @@ -31,10 +32,10 @@ release: image: python:latest script: - pip install awscli - - mkdir ${CI_COMMIT_TAG} - - mv .pioenvs/build/firmware.bin ${CI_COMMIT_TAG} - - mv .pioenvs/build/spiffs.bin ${CI_COMMIT_TAG} + - mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG} + - mv .pioenvs/build/firmware.bin ${PROJECT_NAME}/${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" artifacts: paths: - - ${CI_COMMIT_TAG} + - ${PROJECT_NAME}/${CI_COMMIT_TAG}