⚙️ A GitHub Action for building Debian packages
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. |
||
---|---|---|
.github | ||
node_modules | ||
action.yml | ||
LICENSE | ||
main.js | ||
package-lock.json | ||
package.json | ||
post.js | ||
README.md |
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