Skip to content

Commit

Permalink
Add build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jul 14, 2023
1 parent ee6714a commit 03b6f0a
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/build-deb-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build deb package

on:
push:
branches: [ main ]


jobs:
# define job to build and publish docker image
build-and-push-deb-pkg:
name: Build deb package and push to repositories
# run only when code is compiling and tests are passing
runs-on: ubuntu-latest

# steps to perform in job
steps:
- name: Build Debian package
uses: pi-top/debian-package-build-action@master
with:
target_architecture: amd64
docker_image: debian:bookworm
build_directory: artifacts

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: deb
path: artifacts/*.deb
Empty file removed calaos-container.service
Empty file.
2 changes: 2 additions & 0 deletions debian/calaos-container.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
calaos-container usr/bin
scripts/x11docker usr/bin
11 changes: 11 additions & 0 deletions debian/calaos-container.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Calaos-OS container daemon
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/calaos-container
Restart=always

[Install]
WantedBy=multi-user.target
6 changes: 5 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Source: calaos-container
Maintainer: Calaos Team <[email protected]>
Build-Depends: debhelper (>= 11),
golang

Package: calaos-container
Architecture: any
Description: Calaos-OS container service
Description: Calaos-OS container service
Depends: ${misc:Depends}, ${shlibs:Depends},
bash, podman
13 changes: 13 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/make -f

DISTRIBUTION = $(shell sed -n "s/^VERSION_CODENAME=//p" /etc/os-release)
VERSION = 1.0.0
PACKAGEVERSION = $(VERSION)-0~$(DISTRIBUTION)0

%:
dh $@

export GOCACHE=/tmp

override_dh_gencontrol:
dh_gencontrol -- -v$(PACKAGEVERSION)
Empty file modified scripts/x11docker
100644 → 100755
Empty file.

0 comments on commit 03b6f0a

Please sign in to comment.