Commit 83adf927 authored by Jacob Priddy's avatar Jacob Priddy 👌

fix build process

parent f2ab48d0
Pipeline #18165 passed with stages
in 2 minutes and 25 seconds
......@@ -8,6 +8,7 @@ stages:
before_script:
- >
if [[ -n ${CI_COMMIT_TAG+x} ]]; then
echo "${CI_COMMIT_TAG}"
printf "${CI_COMMIT_TAG}" > version.txt
fi
......@@ -45,14 +46,13 @@ deploy_controller_update:
stage: deploy
tags:
- elock
before_script:
- echo "CI_COMMIT_TAG"
script:
- echo "$SIGNING_KEY" | base64 -d -w 0 > decoded.pem
- espsecure.py sign_data --keyfile decoded.pem --version 1 build/door-controller.bin
- version=$(<version.txt)
- deploy_name="v${version}.bin"
- echo "Deploying ${deploy_name}"
- chown 1000:1000 build/door-controller.bin
- mv "build/door-controller.bin" "${PROJ_DIR}/controller-bins/${deploy_name}"
only:
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment