@@ -18,6 +18,7 @@ pipeline:
18
18
commands :
19
19
- curl https://apt.matrix.one/doc/apt-key.gpg | apt-key add -
20
20
- echo "deb https://apt.matrix.one/raspbian ${CODENAME} main" > /etc/apt/sources.list.d/matrixlabs.list
21
+ - apt install -y dkms
21
22
- ${UPDATE_CMD}
22
23
- debuild -us -uc -b
23
24
- mv ../*.deb .
@@ -31,16 +32,16 @@ pipeline:
31
32
secrets : [aws_access_key_id, aws_secret_access_key, gpg_key, gpg_pass]
32
33
commands :
33
34
# Prepare GPG
34
- - echo "$${GPG_KEY}" > /tmp/tmpkey && gpg --import /tmp/tmpkey && rm /tmp/tmpkey
35
+ - echo "$${GPG_KEY}" > /tmp/tmpkey && gpg --import --batch /tmp/tmpkey && rm /tmp/tmpkey
35
36
- echo "personal-digest-preferences SHA512" >> /root/.gnupg/gpg.conf
36
37
37
38
# Only TAG events are published to main
38
39
- export COMPONENT=$([ "${DRONE_BUILD_EVENT}" = "tag" ] && echo "main" || echo "unstable")
39
40
- export PKG_VER=$(dpkg-parsechangelog --show-field Version -ldebian/changelog)
40
41
41
42
# Upload packages
42
- - mv matrixio-kernel-modules_$${PKG_VER}_armhf .deb
43
- matrixio-kernel-modules_${DISTRIBUTION}-${CODENAME}-$${PKG_VER}-$${COMPONENT}_armhf .deb
43
+ - mv matrixio-kernel-modules_$${PKG_VER}_all .deb
44
+ matrixio-kernel-modules_${DISTRIBUTION}-${CODENAME}-$${PKG_VER}-$${COMPONENT}_all .deb
44
45
45
46
- echo "$${GPG_PASS}" | deb-s3 upload --bucket apt.matrix.one
46
47
--prefix $DISTRIBUTION
@@ -50,7 +51,7 @@ pipeline:
50
51
--secret-access-key $${AWS_SECRET_ACCESS_KEY}
51
52
--sign info@matrix.one
52
53
--gpg-options="--batch --passphrase-fd 0"
53
- matrixio-kernel-modules_${DISTRIBUTION}-${CODENAME}-$${PKG_VER}-$${COMPONENT}_armhf .deb
54
+ matrixio-kernel-modules_${DISTRIBUTION}-${CODENAME}-$${PKG_VER}-$${COMPONENT}_all .deb
54
55
55
56
# Render the notification template for the notify-slack step
56
57
- j2 --var-delimiter '%%' .drone/slack.tpl > notification.tpl
0 commit comments