Skip to content

linuxdeepin/deepin-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ...