diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f96bf73f4b1d9a011566bccb6d4271c4ee9d6c1b..c97a8f52c3017e7fa4ed95efe36185e94d1c8ce2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,19 @@ before_script: - git config --global user.email "noreply@clubelek.fr" - git config --global user.name "Compiler bot" +add_tags: + stage: deploy + script: + - echo "$SSH_PRIVATE_KEY_NANOPB" | tr -d '\r' | ssh-add - + - git remote add nanopb_dst $NANOPB_GIT_URL + - git fetch nanopb_dst + - echo "Tag is $CI_COMMIT_SHA" + - echo "Commit SHA is $CI_COMMIT_SHA" + - export $DST_COMMIT="`git log nanopb_dst/master --pretty='%H' --all --grep='messages-schemas/$CI_COMMIT_SHA'`" + - echo "Corresponding commit in nanopb is $DST_COMMIT" + only: + - tags + build: stage: build script: