Commit e27c1b1e authored by Travis Bottalico's avatar Travis Bottalico

add build number to output dir

parent 8b742c65
Pipeline #90740225 passed with stage
in 39 seconds
......@@ -42,13 +42,15 @@ build:
- git submodule sync --recursive
- git submodule update --init --recursive
- make modalai_fc_v1_bl
- BUILD=$(git describe --tags)
- DATE=$(date +"%Y-%m-%d--%H-%M")
- DEST_DIR=/tank/modalai/public/px4/bootloader/
- mkdir -p $DEST_DIR/$DATE/
- BUILD_DIR=$DATE-$BUILD
- mkdir -p $DEST_DIR/$DEST_DIR/
- rm -rf $DEST_DIR/latest/
- mkdir -p $DEST_DIR/latest/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.bin $DEST_DIR/$DATE/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.hex $DEST_DIR/$DATE/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.bin $DEST_DIR/$DEST_DIR/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.hex $DEST_DIR/$DEST_DIR/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.bin $DEST_DIR/latest/
- cp build/modalai_fc_v1_bl/modalai_fc_v1_bl.hex $DEST_DIR/latest/
only:
......
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