{"id":13496249,"url":"https://github.com/jiro4989/build-deb-action","last_synced_at":"2025-06-11T22:08:33.828Z","repository":{"id":41960879,"uuid":"277253860","full_name":"jiro4989/build-deb-action","owner":"jiro4989","description":"build-deb-action builds a simple debian package.","archived":false,"fork":false,"pushed_at":"2025-05-12T11:00:15.000Z","size":88,"stargazers_count":56,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-12T11:25:13.730Z","etag":null,"topics":["debian","docker","github-actions","nim"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiro4989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-05T07:37:43.000Z","updated_at":"2025-05-12T11:00:18.000Z","dependencies_parsed_at":"2024-01-16T09:54:02.628Z","dependency_job_id":"22ff9bad-0222-4dc9-9c82-2ddafc119549","html_url":"https://github.com/jiro4989/build-deb-action","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":"reviewdog/action-template","purl":"pkg:github/jiro4989/build-deb-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fbuild-deb-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fbuild-deb-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fbuild-deb-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fbuild-deb-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/build-deb-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fbuild-deb-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259352876,"owners_count":22844740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","docker","github-actions","nim"],"created_at":"2024-07-31T19:01:44.557Z","updated_at":"2025-06-11T22:08:33.822Z","avatar_url":"https://github.com/jiro4989.png","language":"Go","funding_links":[],"categories":["Nim","Go"],"sub_categories":[],"readme":"# build-deb-action\n\n\u003c!-- TODO: replace jiro4989/build-deb-action with your repo name --\u003e\n[![Test](https://github.com/jiro4989/build-deb-action/workflows/Test/badge.svg)](https://github.com/jiro4989/build-deb-action/actions?query=workflow%3ATest)\n[![reviewdog](https://github.com/jiro4989/build-deb-action/workflows/reviewdog/badge.svg)](https://github.com/jiro4989/build-deb-action/actions?query=workflow%3Areviewdog)\n[![release](https://github.com/jiro4989/build-deb-action/workflows/release/badge.svg)](https://github.com/jiro4989/build-deb-action/actions?query=workflow%3Arelease)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/jiro4989/build-deb-action?logo=github\u0026sort=semver)](https://github.com/jiro4989/build-deb-action/releases)\n[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github\u0026link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)\n\n`build-deb-action` builds a simple debian package.\n\nSee [build-rpm-action](https://github.com/jiro4989/build-rpm-action) if you want to create `rpm` package.\n\n## Input\n\n```yaml\ninputs:\n  package:\n    description: 'Package name of debian package.'\n    required: true\n  package_root:\n    description: 'Directory of release files.'\n    required: true\n  maintainer:\n    description: 'Package maintainer name.'\n    required: true\n  version:\n    description: 'Package version.'\n    required: true\n  installed_size:\n    description: 'Package installed size. GitHub Actions set summarized byte size of `package_root` directory when this parameter is empty.'\n    default: ''\n    required: false\n  depends:\n    description: 'Package dependencies.'\n    default: ''\n    required: false\n  pre_depends:\n    description: 'Package pre-dependencies.'\n    default: ''\n    required: false\n  homepage:\n    description: 'Package homepage url.'\n    default: ''\n    required: false\n  section:\n    description: 'Package section.'\n    default: ''\n    required: false\n  priority:\n    description: 'Package priority.'\n    default: ''\n    required: false\n  arch:\n    description: 'Package architecture.'\n    default: 'amd64'\n    required: false\n  desc:\n    description: 'Package description.'\n    default: ''\n    required: false\n  compress_type:\n    description: \u003e\n      Set the compression type used when building.\n      Allowed types gzip, xz, zstd, none.\n      Default is gzip.\n    default: 'gzip'\n    required: false\n  keep_ownership:\n    description: \u003e\n      If set to true, it creates the package keeping files' owner and group, otherwise they will be assigned to root\n      Default is false.\n    default: 'false'\n    required: false\n```\n\n## Output\n\n```yaml\noutputs:\n  file_name:\n    description: 'File name of resulting .deb file.'\n```\n\n## Usage\n\n```yaml\nname: build\n\non:\n  push:\n    tags:\n      - 'v*.*.*'\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: create sample script\n        run: |\n          mkdir -p .debpkg/usr/bin\n          mkdir -p .debpkg/usr/lib/samplescript\n          echo -e \"echo sample\" \u003e .debpkg/usr/bin/samplescript\n          chmod +x .debpkg/usr/bin/samplescript\n          echo -e \"a=1\" \u003e .debpkg/usr/lib/samplescript/samplescript.conf\n\n          # create DEBIAN directory if you want to add other pre/post scripts\n          mkdir -p .debpkg/DEBIAN\n          echo -e \"echo postinst\" \u003e .debpkg/DEBIAN/postinst\n          chmod +x .debpkg/DEBIAN/postinst\n\n      - uses: jiro4989/build-deb-action@v4\n        with:\n          package: samplescript\n          package_root: .debpkg\n          maintainer: your_name\n          version: ${{ github.ref }} # refs/tags/v*.*.*\n          arch: 'amd64' # optional\n          depends: 'git, jq' # optional\n          pre_depends: 'libc6 (\u003e= 2.2.1)' # optional\n          desc: 'this is sample package.' # optional\n          homepage: 'https://github.com/jiro4989/build-deb-action' # optional\n          section: 'unknown'   # optional\n          priority: 'required' # optional\n        id: build\n\n      # Check a created deb file\n      - name: Check a path of deb file\n        run: ls ${{ steps.build.outputs.file_name }}\n```\n\n## Example projects\n\n* \u003chttps://github.com/jiro4989/nimjson\u003e\n\n## Changes\n\n### v3 -\u003e v4\n\n* #54 Migrate Nim to Golang\n  * `replacetool` was replaced by golang\n  * Docker base image was changed from ubuntu 22.04 to ubuntu 24.04\n  * Default value of optional parameters (`depends`, `homepage` and `section`) was changed from `none` to `\"\"` (empty string)\n\n### v2 -\u003e v3\n\n* PR #45 - Makes all files owned by root\n  * Changed default file owner to `root`. Use `keep_ownership: true` if you want to revert to `v2` behavior.\n\n## Development\n\n### Flow\n\n1. Create a new branch\n1. Commit\n1. Merge the branch into `develop` branch\n1. Push `develop` branch\n1. Check passing all tests\n1. Create a new pull request\n1. Merge the branch into `master` branch\n\nThis actions is using a DockerHub image.  We must push `docker-v0.0.0` git-tag\nto create a new tagged docker image.  Published a new tagged docker image, and\nchange tag of action.yml into `develop` branch, and check passing all tests,\nand merge into `master`.\n\n### Release\n\n#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)\n\nYou can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).\nPushing tag manually by yourself also work.\n\n#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)\n\nThis action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.\nref: \u003chttps://help.github.com/en/articles/about-actions#versioning-your-action\u003e\n\n### Lint - reviewdog integration\n\nThis reviewdog action template itself is integrated with reviewdog to run lints\nwhich is useful for Docker container based actions.\n\n![reviewdog integration](https://user-images.githubusercontent.com/3797062/72735107-7fbb9600-3bde-11ea-8087-12af76e7ee6f.png)\n\nSupported linters:\n\n* [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)\n* [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint)\n* [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fbuild-deb-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fbuild-deb-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fbuild-deb-action/lists"}