Skip to content

Commit 1d201ac

Browse files
committed
build bookworm
1 parent 92b0358 commit 1d201ac

File tree

7 files changed

+115
-5
lines changed

7 files changed

+115
-5
lines changed

.github/workflows/build-packages.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Build Packages
22
on:
33
push:
44
branches:
5-
- main
5+
- build
66
tags:
77
- 'v*.*.*'
88
jobs:
99
prebuild:
10-
runs-on: buildinator-group
10+
runs-on: buildinator-5
1111
outputs:
1212
manifest: ${{ steps.prebuild.outputs.manifest }}
1313
matrix: ${{ steps.prebuild.outputs.matrix }}
@@ -40,7 +40,7 @@ jobs:
4040
needs:
4141
- prebuild
4242
- build
43-
runs-on: buildinator-group
43+
runs-on: buildinator-5
4444
steps:
4545
- name: Run sign playbook
4646
uses: 45drives/actions/ansible-playbook@main
@@ -60,21 +60,47 @@ jobs:
6060
- prebuild
6161
- build
6262
- sign
63-
runs-on: buildinator-group
63+
runs-on: buildinator-5
6464
steps:
6565
- id: push_local
6666
name: Push packages into local repository
6767
uses: 45drives/actions/update-repo@main
6868
with:
6969
directory: ${{ github.workspace }}
7070

71+
72+
create_release:
73+
needs:
74+
- prebuild
75+
- build
76+
- sign
77+
- update_repositories
78+
runs-on: buildinator-5
79+
steps:
80+
- name: Set Variables
81+
if: startsWith(github.ref, 'refs/tags/')
82+
run: |
83+
echo "PRERELEASE=$([ "$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.stable')" = "true" ] && echo false || echo "true")" >> $GITHUB_ENV
84+
echo "TITLE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.title')" >> $GITHUB_ENV
85+
echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV
86+
echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.build_number')" >> $GITHUB_ENV
87+
- name: GitHub Release
88+
if: startsWith(github.ref, 'refs/tags/')
89+
uses: softprops/action-gh-release@v1
90+
with:
91+
name: ${{env.TITLE}} ${{env.VERSION}}
92+
prerelease: ${{env.PRERELEASE}}
93+
body_path: ${{github.workspace}}/CHANGELOG.md
94+
env:
95+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
96+
7197
sync_repositories:
7298
needs:
7399
- prebuild
74100
- build
75101
- sign
76102
- update_repositories
77-
runs-on: buildinator-group
103+
runs-on: buildinator-5
78104
steps:
79105
- id: push_remote
80106
name: Sync local repository with remote repository

manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
"group": "rocky",
5757
"os_name": "rocky-el9",
5858
"image": "ci.cr.45d.io/ci/simple/rocky-el9:1"
59+
},
60+
{
61+
"group": "debian",
62+
"os_name": "debian-bookworm",
63+
"image": "ci.cr.45d.io/ci/simple/ubuntu-jammy:1"
5964
}
6065
],
6166
"repos": [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cockpit-navigator (0.5.10-1bookworm) bookworm; urgency=medium
2+
3+
* build for bookworm
4+
5+
-- Brett Kelly <bkelly@45drives.com> Mon, 24 Feb 2025 14:40:50 -0300
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Source: {{ name }}
2+
Section: utils
3+
Priority: optional
4+
Maintainer: {{ author }}
5+
Build-Depends: debhelper-compat (= 12)
6+
Standards-Version: 4.4.1
7+
Homepage: {{ git_url }}
8+
Vcs-Git: {{ git_url }}
9+
10+
Package: {{ name }}
11+
Architecture: {{ architecture.ubuntu }}
12+
Depends: {{ dependencies.ubuntu_common | join(',') }}
13+
Description: {{ description }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: "{{ name }}"
3+
Upstream-Contact: "{{ author }}"
4+
Source: "{{ git_url }}"
5+
6+
Files: *
7+
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
8+
License: GPL-3.0+
9+
10+
Files: navigator/navigator.*
11+
Copyright: 2021 Sam Silver <ssilver@45drives.com>
12+
License: GPL-3.0+
13+
14+
Files: navigator/navigator.js
15+
Copyright: 2021 Dawson Della Valle <ddellavalle@45drives.com>
16+
License: GPL-3.0+
17+
18+
Files: debian/*
19+
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
20+
License: GPL-3.0+
21+
22+
License: GPL-3.0+
23+
This program is free software: you can redistribute it and/or modify
24+
it under the terms of the GNU General Public License as published by
25+
the Free Software Foundation, either version 3 of the License, or
26+
(at your option) any later version.
27+
.
28+
This program is distributed in the hope that it will be useful,
29+
but WITHOUT ANY WARRANTY; without even the implied warranty of
30+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31+
GNU General Public License for more details.
32+
.
33+
You should have received a copy of the GNU General Public License
34+
along with the Onboard package. If not, please have a look at
35+
/usr/share/common-licenses or <http://www.gnu.org/licenses/>.

packaging/debian-bookworm/rules

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
#export DH_VERBOSE = 1
5+
6+
7+
# see FEATURE AREAS in dpkg-buildflags(1)
8+
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9+
10+
# see ENVIRONMENT in dpkg-buildflags(1)
11+
# package maintainers to append CFLAGS
12+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13+
# package maintainers to append LDFLAGS
14+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15+
16+
export NAV_VERS := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ':')
17+
18+
%:
19+
dh $@
20+
21+
22+
# dh_make generated override targets
23+
# This is example for Cmake (See https://bugs.debian.org/641051 )
24+
#override_dh_auto_configure:
25+
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)