-
Notifications
You must be signed in to change notification settings - Fork 296
41 lines (37 loc) · 1.09 KB
/
debian-package.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
#Github Workflow to build Debian packages for intelmq-api
#
#SPDX-FileCopyrightText: 2020 IntelMQ Team <[email protected]>
#SPDX-License-Identifier: AGPL-3.0-or-later
#
name: "Build Debian packages"
on:
push:
branches: [develop, maintenance, master]
paths-ignore:
- '.github/**'
pull_request:
branches: [develop, maintenance]
paths-ignore:
- '.github/**'
jobs:
build:
runs-on: ubuntu-20.04
env:
# Fixes https://github.com/actions/virtual-environments/issues/3080
STORAGE_OPTS: overlay.mount_program=/usr/bin/fuse-overlayfs
name: Build Debian packages
strategy:
matrix:
codename: ['bullseye', 'bookworm']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build package
run: bash .github/workflows/scripts/debian-package.sh ${{ matrix.codename }}
- name: Upload artifact
if: ${{ github.event_name == 'push' }}
uses: actions/upload-artifact@v3
with:
name: debian-package-${{ matrix.codename }}-${{ github.sha }}
path: '~/artifacts'
retention-days: 5