⚙️ A GitHub Action for building Debian packages
Find a file
Sebastian Kuzminsky 0181a8bea4 tell git to trust the repo
Recent versions of git do not like to run as root in repos that are not
owned by root.  This is commonly the situation when a user checks out
a git repo, then runs a docker container with the repo mounted in it.

The version un debian unstable (1:2.38.1-1) has this issue.  The version
in bullseye (1:2.30.2-1) does not have this issue.

git-deborig gives this unhelpful error message:

    $ git deborig HEAD
    pwd doesn't look like a git repository ..

Regular git gives this more useful error message:

    $ git status
    fatal: detected dubious ownership in repository at '/data/home/seb/action-debian-package'
    To add an exception for this directory, call:

            git config --global --add safe.directory /data/home/seb/action-debian-package

This commit fixes the issue by running the recommended command inside
the container, before trying to access the git repo.

Fixes #62.
2022-11-08 08:18:59 -07:00
.github workflows: swap arches 2021-07-10 00:27:18 +02:00
node_modules node_modules: upgrade 2022-10-27 10:26:28 +02:00
action.yml action: bump to node16 2022-10-27 10:27:49 +02:00
LICENSE init 2020-03-25 23:13:26 +01:00
main.js tell git to trust the repo 2022-11-08 08:18:59 -07:00
package-lock.json node_modules: upgrade 2022-10-27 10:26:28 +02:00
package.json node_modules: upgrade 2022-10-27 10:26:28 +02:00
post.js add post script 2020-12-09 23:07:13 +01:00
README.md README: mention arch 2021-07-10 00:12:59 +02:00

Build Debian package Github Action

An action that builds a Debian package from source in a Docker container.

Usage

- name: Build Debian package
  uses: dawidd6/action-debian-package@v1
  with:
    # Optional, relative to workspace directory
    source_directory: lolcat
    # Optional, relative to workspace directory
    artifacts_directory: output
    # Optional, value from `debian/changelog` is used if not defined
    os_distribution: bionic
    # Optional, target architecture, defaults to amd64
    cpu_architecture: arm64