update drone to run with pi user

This commit is contained in:
Nicu Hodos 2023-12-18 20:33:59 +01:00
parent c9d0bea6ee
commit f9b8797951

View File

@ -11,8 +11,6 @@ steps:
- name: static check - name: static check
commands: commands:
- cd gateway - cd gateway
- whoami
- export
- pio check -e pro-mini - pio check -e pro-mini
when: when:
target: target:
@ -31,10 +29,10 @@ steps:
- name: upload firmware - name: upload firmware
commands: commands:
- cd gateway - cd gateway
- service ser2net stop - sudo service ser2net stop
- pio run -e pro-mini - pio run -e pro-mini
- echo 'reset' > /dev/ttyUSB0; sleep 1s; avrdude -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:.pio/build/pro-mini/firmware.hex:i -v - echo 'reset' > /dev/ttyUSB0; sleep 1s; avrdude -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:.pio/build/pro-mini/firmware.hex:i -v
- service ser2net start - sudo service ser2net start
when: when:
target: target:
- production - production