This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (38 loc) · 1.61 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: droidian rootfs test build
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
arch: [amd64]
template: [rootfs-builder]
dist: [bookworm]
namespace: [droidian]
debos_arch: [amd64,armhf,arm64]
name: ${{ matrix.template }}:${{ matrix.dist }} on ${{ matrix.debos_arch }}
steps:
- name: Get current date
run: echo "current_date=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Set suffix
run: echo "release_suffix=_${{ env.current_date }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: QEMU set-up
uses: docker/setup-qemu-action@v1
- name: Create build dir
run: mkdir -p /tmp/buildd-results
- name: Pull container
run: docker pull quay.io/${{ matrix.namespace }}/${{ matrix.template }}:${{ matrix.dist }}-${{ matrix.arch }}
- name: Start Container
run: echo CONTAINER_HASH=$(docker run --detach --privileged -v /tmp/buildd-results:/buildd -v /dev:/dev -v /sys/fs/cgroup:/sys/fs/cgroup -v ${PWD}:/buildd/sources --security-opt seccomp:unconfined quay.io/${{ matrix.namespace }}/${{ matrix.template }}:${{ matrix.dist }}-${{ matrix.arch }} /sbin/init) >> $GITHUB_ENV
- name: Build rootfs
run: docker exec $CONTAINER_HASH /bin/sh -c 'cd /buildd/sources; debos -t architecture:${{ matrix.debos_arch }} -t suffix:${{ env.release_suffix }} -t version:nightly device.yml'