Skip to content

Commit

Permalink
fix start_x param
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Jul 14, 2024
1 parent 49c3448 commit 5f5b7f7
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 5 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/deploy-release-test_32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: deploy-release

on:
push:
branches: [ main_32 ]

jobs:
deploy-release:
strategy:
max-parallel: 3
matrix:
device:
- type: raspberrypi3
fleet: info319/coderbot_test
# - type: raspberrypi3-64
# fleet: info319/coderbot_pi3_64_test
# - type: raspberrypi0-2w-64
# fleet: info319/coderbot_pi0w2_64_test
runs-on: ubuntu-latest
environment: test
outputs:
release_id: ${{ steps.build.outputs.release_id }}
steps:
- uses: actions/checkout@v3 # Checking out the repo
- uses: balena-io/[email protected]
id: build
with:
balena_token: ${{ secrets.BALENA_TOKEN }}
fleet: ${{ matrix.device.fleet }}
registry_secrets: ${{ secrets.GHCR_CREDS }}
source: .
- name: Log release ID built
run: echo "Built release version ${{ steps.build.outputs.release_id }}"

build-balena:
strategy:
matrix:
device:
- type: raspberrypi3
version: v5.3.21.dev
fleet: info319/coderbot_test
# - type: raspberrypi3-64
# version: v5.0.8.dev
# fleet: info319/coderbot_pi3_64_test
# - type: raspberrypi0-2w-64
# version: v5.3.21.dev
# fleet: info319/coderbot_pi0w2_64_test
env:
IMAGE_NAME: coderbot_${{ matrix.device.type }}.img
DEVICE_TYPE: ${{ matrix.device.type }}
DEVICE_VERSION: ${{ matrix.device.version }}
BALENA_FLEET: ${{ matrix.device.fleet }}
needs: deploy-release
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v3 # Checking out the repo
- 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
- run: unzip balena-cli-v14.4.1-linux-x64-standalone.zip
- run: export PATH=$PATH:$(pwd)/balena-cli
- run: ./balena-cli/balena --version
- run: ./balena-cli/balena login --token ${{ secrets.BALENA_TOKEN }}
- run: ./balena-cli/balena os download $DEVICE_TYPE --version $DEVICE_VERSION --output $IMAGE_NAME
- run: sudo mkdir /mnt/resin-boot
- run: sudo mount -o loop,offset=$(( 512 * 8192)) $IMAGE_NAME /mnt/resin-boot
- run: sudo cp rpi/config.txt /mnt/resin-boot
- run: sudo umount /mnt/resin-boot
- run: ./balena-cli/balena config generate --version $DEVICE_VERSION --deviceType $DEVICE_TYPE --fleet $BALENA_FLEET --network ethernet --appUpdatePollInterval 10 --dev -o config.json
- run: ./balena-cli/balena os configure $IMAGE_NAME --fleet $BALENA_FLEET --config config.json --config-network ethernet
- run: sudo ./balena-cli/balena config write --drive $IMAGE_NAME hostname coderbot
- run: echo "RELEASE_COMMIT=current" >> $GITHUB_ENV #echo "RELEASE_COMMIT=$(./balena-cli/balena release ${{ needs.deploy-release.outputs.release_id }}|grep 'COMMIT'|awk '{print $2}')" >> $GITHUB_ENV
- run: ./balena-cli/balena preload $IMAGE_NAME --fleet $BALENA_FLEET -c $RELEASE_COMMIT
- run: mkdir -p dist
- run: mv $IMAGE_NAME ./dist/.
- name: Archive dist
uses: actions/upload-artifact@v3
with:
name: image-preloaded
path: dist
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: '2'
services:
frontend:
image: ghcr.io/coderbotorg/frontend:latest-arm64
image: ghcr.io/coderbotorg/frontend:v0.6.0
platform: linux/arm64
restart: unless-stopped
network_mode: host
privileged: true

backend:
image: ghcr.io/coderbotorg/backend:git-c2ccffa-arm64
image: ghcr.io/coderbotorg/backend:5.1.1
platform: linux/arm64
restart: unless-stopped
network_mode: host
Expand Down
5 changes: 2 additions & 3 deletions rpi/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
##
## Default 0
##
start_x=0
start_x=1

## disable_camera_led
## Turn off the red camera led when recording video or taking a still
Expand Down Expand Up @@ -1191,5 +1191,4 @@ dtparam=spi=on
disable_splash=1
avoid_warnings=1
dtparam=audio=on
#arm_freq=1000
camera_auto_detect=1
arm_freq=1000

0 comments on commit 5f5b7f7

Please sign in to comment.