Browse Source

include version file

split_files
Hendrik Langer 5 years ago
parent
commit
82f86a9c23
  1. 6
      .gitlab-ci.yml

6
.gitlab-ci.yml

@ -9,13 +9,13 @@ build:
- pip install -U platformio
- platformio update
script:
# - date +%s > version.txt
# - date +%s > build/version.txt
- platformio ci --lib="script" --project-conf platformio.ini --board=lolin_d32_pro --build-dir="build" --keep-build-dir
variables: {PLATFORMIO_CI_SRC: "src"}
artifacts:
paths:
- build/.pio/build/lolin_d32_pro/*.bin
- version.txt
- build/version.txt
deploy:
stage: deploy
@ -31,7 +31,7 @@ deploy:
- chmod 644 ~/.ssh/known_hosts
script:
- scp build/.pio/build/lolin_d32_pro/firmware.bin "${SSH_USER_HOST}:${DEPLOY_PATH}"
- scp version.txt "${SSH_USER_HOST}:${DEPLOY_PATH}".version
- scp build/version.txt "${SSH_USER_HOST}:${DEPLOY_PATH}".version
dependencies:
- build
when: manual

Loading…
Cancel
Save