mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8024 from Icinga/feature/github-actions-raspbian
GitHub actions: build Raspbian packages
This commit is contained in:
commit
54e2b11f8c
|
@ -235,3 +235,79 @@ jobs:
|
|||
with:
|
||||
name: '${{ matrix.distro.name }}-${{ matrix.distro.release }}-packages'
|
||||
path: rpm-icinga2/build
|
||||
raspbian:
|
||||
name: Raspbian
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
codename:
|
||||
- buster
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout HEAD
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: qemu-user-static
|
||||
run: |
|
||||
set -exo pipefail
|
||||
sudo apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y qemu-user-static
|
||||
|
||||
- name: raspbian-icinga2
|
||||
run: |
|
||||
set -exo pipefail
|
||||
git clone https://git.icinga.com/packaging/raspbian-icinga2.git
|
||||
chmod o+w raspbian-icinga2
|
||||
|
||||
- name: Restore/backup ccache
|
||||
id: ccache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: raspbian-icinga2/ccache
|
||||
key: 'raspbian/${{ matrix.codename }}-ccache'
|
||||
|
||||
- name: Binary
|
||||
run: |
|
||||
set -exo pipefail
|
||||
git checkout -B master
|
||||
if [ -e raspbian-icinga2/ccache ]; then
|
||||
chmod -R o+w raspbian-icinga2/ccache
|
||||
fi
|
||||
docker run --rm \
|
||||
-v "$(pwd)/raspbian-icinga2:/raspbian-icinga2" \
|
||||
-v "$(pwd)/.git:/icinga2.git:ro" \
|
||||
-w /raspbian-icinga2 \
|
||||
-e ICINGA_BUILD_PROJECT=icinga2 \
|
||||
-e ICINGA_BUILD_TYPE=snapshot \
|
||||
-e UPSTREAM_GIT_URL=file:///icinga2.git \
|
||||
-e ICINGA_BUILD_DEB_DEFAULT_ARCH=armhf \
|
||||
registry.icinga.com/build-docker/raspbian/${{ matrix.codename }} \
|
||||
icinga-build-package
|
||||
|
||||
# Setting up icinga2-bin (2.12.0+rc1.25.g5d1c82a3d.20200526.0754+buster-0) ...
|
||||
# enabling default icinga2 features
|
||||
# qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6015c75c
|
||||
# qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6015c75c
|
||||
# qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x600016ea
|
||||
# dpkg: error processing package icinga2-bin (--configure):
|
||||
# installed icinga2-bin package post-installation script subprocess returned error exit status 127
|
||||
#
|
||||
# - name: Test
|
||||
# run: |
|
||||
# set -exo pipefail
|
||||
# docker run --rm \
|
||||
# -v "$(pwd)/raspbian-icinga2:/raspbian-icinga2" \
|
||||
# -w /raspbian-icinga2 \
|
||||
# -e ICINGA_BUILD_PROJECT=icinga2 \
|
||||
# -e ICINGA_BUILD_TYPE=snapshot \
|
||||
# -e ICINGA_BUILD_DEB_DEFAULT_ARCH=armhf \
|
||||
# registry.icinga.com/build-docker/raspbian/${{ matrix.codename }} \
|
||||
# icinga-build-test
|
||||
|
||||
- name: Artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: 'raspbian-${{ matrix.codename }}-packages'
|
||||
path: raspbian-icinga2/build
|
||||
|
|
Loading…
Reference in New Issue