Skip to content

Build SquashFS Image #106

Build SquashFS Image

Build SquashFS Image #106

Workflow file for this run

name: Build SquashFS Image
on:
workflow_dispatch:
inputs:
debos_branch:
type: string
description: neon_debos branch to use
push:
branches:
- dev
- master
paths-ignore:
- 'neon_core/version.py'
- 'CHANGELOG.md'
jobs:
build_squashfs_image:
runs-on: 2222.us
steps:
- name: Get debos repo branch
id: branch
run: |
DEFAULT_REF=${{ github.ref }}
REQUEST_REF=${{ github.event.inputs.debos_branch }}
echo "::set-output name=debos::${REQUEST_REF:-${DEFAULT_REF}}"
- name: Checkout Debos Repository
uses: actions/checkout@v3
with:
ref: ${{ steps.branch.outputs.debos }}
lfs: True
repository: NeonGeckoCom/neon_debos
path: action/neon_debos
- name: Create LFS file list
run: git lfs ls-files -l action/neon_debos | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:

Check failure on line 39 in .github/workflows/build_debos.yml

View workflow run for this annotation

GitHub Actions / Build SquashFS Image

Invalid workflow file

The workflow is not valid. .github/workflows/build_debos.yml (Line: 39, Col: 14): Unexpected value '' .github/workflows/build_debos.yml (Line: 40, Col: 9): Unexpected value 'path'
path: action/neon_debos/.git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Ensure LFS files are pulled
run: |
cd action/neon_debos
git lfs pull
cd ../..
- name: Export keys for image build
run: |
mkdir -p action/neon_debos/overlays/80-google-json-overlay/home/neon/.local/share/neon
echo ${GOOGLE_KEY}>action/neon_debos/overlays/80-google-json-overlay/home/neon/.local/share/neon/google.json
env:
GOOGLE_KEY: ${{secrets.google_api_key}}
- name: Build and Export Mk2 Image
run: |
bash action/neon_debos/run_automation.sh debian-neon-image.yml ${{ github.ref_name }} /var/www/html/app/files/neon_images/pi/mycroft_mark_2 rpi4 mark_2
- name: Build and Export OPi5 Image
run: |
bash action/neon_debos/run_automation.sh debian-neon-image.yml ${{ github.ref_name }} /var/www/html/app/files/neon_images/orange_pi_5/ opi5 opi5