* Add action to build qemu image inside CI created Docker image * Disable automatic executing until its not tested
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Build image with CI Docker image
|
|
on:
|
|
# Trigger the workflow on push but only for the main branch
|
|
#push:
|
|
# branches:
|
|
# - master
|
|
# Trigger manually
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
Build:
|
|
|
|
name: Build image with CI Docker image
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'Armbian' }}
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
repository: armbian/build
|
|
path: build
|
|
clean: true
|
|
|
|
- name: Checkout support scripts
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
repository: armbian/scripts
|
|
path: scripts
|
|
clean: true
|
|
|
|
- name: Sync
|
|
run: |
|
|
|
|
sudo cp scripts/configs/* build/userpatches/
|
|
|
|
- name: Pull Docker image
|
|
run: |
|
|
|
|
docker pull ghcr.io/armbian/build:$(cat build/VERSION)
|
|
cd build
|
|
sed -i "s/COMPRESS_OUTPUTIMAGE=.*/COMPRESS_OUTPUTIMAGE=\"no\"/" userpatches/lib.config
|
|
./compile.sh docker BOARD=virtual-qemu BRANCH=current RELEASE=focal BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=no REPOSITORY_INSTALL="u-boot,kernel,armbian-config,armbian-firmware"
|