Skip to content

Commit 3d7a97b

Browse files
authored
Merge pull request #905 from openzim/update-package-ci
Update Packages CI/CD with latest versions of Debian/Ubuntu
2 parents 03fb9c3 + fbd5596 commit 3d7a97b

File tree

1 file changed

+38
-11
lines changed

1 file changed

+38
-11
lines changed

.github/workflows/package.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
release:
9-
types: [published]
9+
types: [ published ]
1010

1111
jobs:
1212
build-deb:
@@ -16,16 +16,21 @@ jobs:
1616
matrix:
1717
distro:
1818
- debian-unstable
19+
- debian-trixie
20+
- debian-bookworm
1921
- debian-bullseye
22+
- ubuntu-noble
2023
- ubuntu-jammy
2124
- ubuntu-focal
25+
26+
# Pin your dependencies with https://github.com/mheap/pin-github-action
2227
steps:
2328
- name: Harden Runner
24-
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
29+
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # pin@v2
2530
with:
2631
egress-policy: audit
2732

28-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
33+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
2934

3035
# Determine which PPA we should upload to
3136
- name: PPA
@@ -40,48 +45,70 @@ jobs:
4045
env:
4146
REF: ${{ github.ref }}
4247

43-
- uses: legoktm/gh-action-auto-dch@18025761b70898aac9ddb5bdc726bcd083926714 # master
48+
- uses: legoktm/gh-action-auto-dch@2b7d6a33db93a408d4b5e2edf38be7fd578b11d7 # pin@main
4449
with:
4550
fullname: Kiwix builder
4651
email: release+launchpad@kiwix.org
4752
distro: ${{ matrix.distro }}
4853

49-
- uses: legoktm/gh-action-build-deb@4f3fbf87de8bf0870f44624693cae17b7ad34ca2 # debian-unstable
54+
- uses: legoktm/gh-action-build-deb@7a6b22239275ae4e425fefc6f1aeb1118160500d # pin@debian-unstable
5055
if: matrix.distro == 'debian-unstable'
5156
name: Build package for debian-unstable
5257
id: build-debian-unstable
5358
with:
5459
args: --no-sign
5560

56-
- uses: legoktm/gh-action-build-deb@1f7501377e7c229f373748af433e5c3818eeae6e # debian-bullseye
61+
- uses: legoktm/gh-action-build-deb@b47978ba8498dc8b8153cc3b5f99a5fc1afa5de1 # pin@debian-trixie
62+
if: matrix.distro == 'debian-trixie'
63+
name: Build package for debian-trixie
64+
id: build-debian-trixie
65+
with:
66+
args: --no-sign
67+
68+
- uses: legoktm/gh-action-build-deb@1f4e86a6bb34aaad388167eaf5eb85d553935336 # pin@debian-bookworm
69+
if: matrix.distro == 'debian-bookworm'
70+
name: Build package for debian-bookworm
71+
id: build-debian-bookworm
72+
with:
73+
args: --no-sign
74+
75+
- uses: legoktm/gh-action-build-deb@084b4263209252ec80a75d2c78a586192c17f18d # pin@debian-bullseye
5776
if: matrix.distro == 'debian-bullseye'
5877
name: Build package for debian-bullseye
5978
id: build-debian-bullseye
6079
with:
6180
args: --no-sign
6281

63-
- uses: legoktm/gh-action-build-deb@56d1c4bc50f5525fa9b66ac6d7a984ece0428d46 # ubuntu-jammy
82+
- uses: legoktm/gh-action-build-deb@9114a536498b65c40b932209b9833aa942bf108d # pin@ubuntu-noble
83+
if: matrix.distro == 'ubuntu-noble'
84+
name: Build package for ubuntu-noble
85+
id: build-ubuntu-noble
86+
with:
87+
args: --no-sign
88+
ppa: ${{ steps.ppa.outputs.ppa }}
89+
90+
- uses: legoktm/gh-action-build-deb@1553bc52b826020691af83a7354a047f2727106c # pin@ubuntu-jammy
6491
if: matrix.distro == 'ubuntu-jammy'
6592
name: Build package for ubuntu-jammy
6693
id: build-ubuntu-jammy
6794
with:
6895
args: --no-sign
6996
ppa: ${{ steps.ppa.outputs.ppa }}
7097

71-
- uses: legoktm/gh-action-build-deb@e58c0b09a3955e39a4ab83ffe03025d622dda039 # ubuntu-focal
98+
- uses: legoktm/gh-action-build-deb@77900afcbdc12874b7177e0e9fca2f4da043cd05 # pin@ubuntu-focal
7299
if: matrix.distro == 'ubuntu-focal'
73100
name: Build package for ubuntu-focal
74101
id: build-ubuntu-focal
75102
with:
76103
args: --no-sign
77104
ppa: ${{ steps.ppa.outputs.ppa }}
78105

79-
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
106+
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # pin@v4
80107
with:
81108
name: Packages for ${{ matrix.distro }}
82109
path: output
83110

84-
- uses: legoktm/gh-action-dput@a41ede69b89b473fb9de31db5f82aef098ca6492 # master
111+
- uses: legoktm/gh-action-dput@4f46c373c7d114c8885c376be07f9ad5490c4f51 # pin@main
85112
name: Upload dev package
86113
# Only upload on pushes to main
87114
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
@@ -90,7 +117,7 @@ jobs:
90117
repository: ppa:kiwixteam/dev
91118
packages: output/*_source.changes
92119

93-
- uses: legoktm/gh-action-dput@a41ede69b89b473fb9de31db5f82aef098ca6492 # master
120+
- uses: legoktm/gh-action-dput@4f46c373c7d114c8885c376be07f9ad5490c4f51 # pin@main
94121
name: Upload release package
95122
if: github.event_name == 'release' && startswith(matrix.distro, 'ubuntu-')
96123
with:

0 commit comments

Comments
 (0)