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

Loading…
Cancel
Save