Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.59 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.59 KB

Deepin Pbuilder Docker Image

简体中文

What is this

This is a docker image for build Debian package.

Publish Docker Publish Pbuilder

How to use this in Github Actions

create Github Action YAML file .github/workflows/pr.yml:

on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/linuxdeepin/deepin-github:latest
      options: --privileged
    steps:
      - uses: actions/checkout@v2
      - run: /entrypoint.sh

Use 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-latest
    container:
      image: ghcr.io/linuxdeepin/deepin-github:latest
      options: --privileged
    strategy:
      matrix:
        repo: [deepin, buster]
    steps:
      - uses: actions/checkout@v2
      - run: /entrypoint.sh ${{ matrix.repo }}

Why this image required privileged

Because we use Pbuilder to build package, Pbuilder need permission to mount something like /proc ...