ermshiperete / gha-ubuntu-packaging

A GitHub action to build Ubuntu packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian packaging

A GitHub action to build Ubuntu packages.

Documentation

Inputs

dist

Required The name of a Ubuntu version, either code name (e.g. jammy) or release (e.g. 22.04). Default: latest.

sourcepackage

Required The name (and relative path) of the .dsc file.

platform

The platform to build on. One of amd64 or 386 (or one of the other OS/ARCH combinations from https://hub.docker.com/_/ubuntu without leading linux/). Defaults to amd64.

source_dir

The path to the directory that contains the .dsc file. Defaults to the current directory (.).

result_dir

The path to the directory where the built .deb files get copied to. Defaults to ${source_dir}/artifacts.

enable_llso

true to enable the llso package repo (http://linux.lsdev.sil.org), otherwise false. Defaults to true.

enable_pso

true to enable the pso package repo (http://packages.sil.org), otherwise false. Defaults to true.

Example usage

...
steps:
  - uses: sillsdev/gha-ubuntu-packaging@v1
    with:
      dist: 'jammy'
      sourcepackage: ${{sourcepackage}}
...

Manual package builds in a Docker container

The files in this directory also allow to manually build a package in a docker container.

1. Build image

docker build --build-arg DIST=jammy --build-arg PLATFORM=amd64 -t sillsdev/jammy .

jammy and amd64 are the Ubuntu version and platform for which to build the package.

2. Build binary package

Change into the directory which contains the source package, then run:

docker run -v $(pwd):/source -i -t -w /source --platform=linux/amd64 \
    sillsdev/jammy ibus_1.5.26-4sil1.1~jammy.dsc /source

ibus_1.5.26-4sil1.1~jammy.dsc is the name of the source package. The resulting .deb files will be in $(pwd)/artifacts.

About

A GitHub action to build Ubuntu packages.

License:MIT License


Languages

Language:Dockerfile 59.5%Language:Shell 40.5%