forked from ZoneMinder/zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.67 KB
/
create-packages.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Create packages
on:
push:
branches: [ master ]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
package:
strategy:
matrix:
os_dist:
- os: debian
dist: bullseye
arch: x86_64
- os: ubuntu
dist: focal
arch: x86_64
- os: ubuntu
dist: jammy
arch: x86_64
- os: debian
dist: bookworm
arch: x86_64
- os: debian
dist: bullseye
arch: aarch64
- os: ubuntu
dist: focal
arch: aarch64
- os: ubuntu
dist: jammy
arch: aarch64
- os: debian
dist: bookworm
arch: aarch64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
submodules: recursive
- if: matrix.os_dist.arch == 'aarch64'
name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Run packpack
env:
SMPFLAGS: -j4
OS: ${{ matrix.os_dist.os }}
DIST: ${{ matrix.os_dist.dist }}
ARCH: ${{ matrix.os_dist.arch }}
DOCKER_REPO: packpack/packpack
run: utils/packpack/startpackpack.sh
- name: Publish
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.ZMREPO_SSH_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: build/
REMOTE_HOST: ${{ secrets.ZMREPO_HOST }}
REMOTE_USER: ${{ secrets.ZMREPO_SSH_USER }}
TARGET: debian/master/mini-dinstall/incoming/