@@ -5,7 +5,7 @@ name: deploy-release
55
66on :
77 push :
8- branches : [ main ]
8+ branches : [ main_64 ]
99
1010jobs :
1111 deploy-release :
@@ -15,23 +15,30 @@ jobs:
1515 device :
1616 - type : raspberrypi3
1717 fleet : info319/coderbot_test
18- # - type: raspberrypi3-64
19- # fleet: info319/coderbot_pi3_64_test
20- # - type: raspberrypi0-2w-64
21- # fleet: info319/coderbot_pi0w2_64_test
18+ config : config_32
19+ - type : raspberrypi3-64
20+ fleet : info319/coderbot_pi3_64_test
21+ config : config_64
22+ - type : raspberrypi0-2w-64
23+ fleet : info319/coderbot_pi0w2_64_test
24+ config : config_64
25+ - type : raspberrypi5
26+ version : 6.5.9+rev5.dev
27+ fleet : info319/coderbot_pi5_64_test
28+ config : config_64
2229 runs-on : ubuntu-latest
2330 environment : test
2431 outputs :
2532 release_id : ${{ steps.build.outputs.release_id }}
2633 steps :
2734 - uses : actions/checkout@v3 # Checking out the repo
28- -
uses :
balena-io/[email protected] .45 35+ -
uses :
balena-io/[email protected] .108 2936 id : build
3037 with :
3138 balena_token : ${{ secrets.BALENA_TOKEN }}
3239 fleet : ${{ matrix.device.fleet }}
3340 registry_secrets : ${{ secrets.GHCR_CREDS }}
34- source : .
41+ source : ${{ matrix.device.config }}
3542 - name : Log release ID built
3643 run : echo "Built release version ${{ steps.build.outputs.release_id }}"
3744
@@ -40,14 +47,21 @@ jobs:
4047 matrix :
4148 device :
4249 - type : raspberrypi3
43- version : v5.3.21 .dev
50+ version : v6.5.17+rev2 .dev
4451 fleet : info319/coderbot_test
45- # - type: raspberrypi3-64
46- # version: 6.5.9+rev5.dev
47- # fleet: info319/coderbot_pi3_64_test
48- # - type: raspberrypi0-2w-64
49- # version: 6.5.9+rev5.dev
50- # fleet: info319/coderbot_pi0w2_64_test
52+ config : config_32
53+ - type : raspberrypi3-64
54+ version : v6.5.1+rev4.dev
55+ fleet : info319/coderbot_pi3_64_test
56+ config : config_64
57+ - type : raspberrypi0-2w-64
58+ version : 6.5.9+rev5.dev
59+ fleet : info319/coderbot_pi0w2_64_test
60+ config : config_64
61+ - type : raspberrypi5
62+ version : 6.5.9+rev5.dev
63+ fleet : info319/coderbot_pi5_64_test
64+ config : config_64
5165 env :
5266 IMAGE_NAME : coderbot_${{ matrix.device.type }}.img
5367 DEVICE_TYPE : ${{ matrix.device.type }}
@@ -58,15 +72,15 @@ jobs:
5872 environment : test
5973 steps :
6074 - uses : actions/checkout@v3 # Checking out the repo
61- - run : wget https://github.com/balena-io/balena-cli/releases/download/v18.0.0 /balena-cli-v18.0.0 -linux-x64-standalone.zip -O balena-cli-v14.4.1 -linux-x64-standalone.zip
62- - run : unzip balena-cli-v14.4.1 -linux-x64-standalone.zip
75+ - run : wget https://github.com/balena-io/balena-cli/releases/download/v21.1.9 /balena-cli-v21.1.9 -linux-x64-standalone.zip -O balena-cli-v21.1.9 -linux-x64-standalone.zip
76+ - run : unzip balena-cli-v21.1.9 -linux-x64-standalone.zip
6377 - run : export PATH=$PATH:$(pwd)/balena-cli
6478 - run : ./balena-cli/balena --version
6579 - run : ./balena-cli/balena login --token ${{ secrets.BALENA_TOKEN }}
6680 - run : ./balena-cli/balena os download $DEVICE_TYPE --version $DEVICE_VERSION --output $IMAGE_NAME
6781 - run : sudo mkdir /mnt/resin-boot
6882 - run : sudo mount -o loop,offset=$(( 512 * 8192)) $IMAGE_NAME /mnt/resin-boot
69- - run : sudo cp rpi /config.txt /mnt/resin-boot
83+ - run : sudo cp ${{ matrix.device.config }} /config.txt /mnt/resin-boot
7084 - run : sudo umount /mnt/resin-boot
7185 - run : ./balena-cli/balena config generate --version $DEVICE_VERSION --deviceType $DEVICE_TYPE --fleet $BALENA_FLEET --network ethernet --appUpdatePollInterval 10 --dev -o config.json
7286 - run : ./balena-cli/balena os configure $IMAGE_NAME --fleet $BALENA_FLEET --config config.json --config-network ethernet
0 commit comments