This is a docker image for build Debian package.
create Github Action YAML file .github/workflows/pr.yml:
on: [pull_request]jobs:
build:
runs-on: ubuntu-latestcontainer:
image: ghcr.io/linuxdeepin/deepin-github:latestoptions: --privilegedsteps:
- uses: actions/checkout@v2
- run: /entrypoint.shUse deepin-community repository by default, we can use /entrypoint.sh reponame to special which repo used for compiling.
The currently maintainly repos could be found in repos folder.
Multi-repos build Actions example:
on: [pull_request]jobs:
build:
runs-on: ubuntu-latestcontainer:
image: ghcr.io/linuxdeepin/deepin-github:latestoptions: --privilegedstrategy:
matrix:
repo: [deepin, buster]steps:
- uses: actions/checkout@v2
- run: /entrypoint.sh ${{ matrix.repo }}Because we use Pbuilder to build package, Pbuilder need permission to mount something like /proc ...