Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Documentation builds, one per documented distribution. The documentation is built by running the commands it contains in
# containers, so this is also an end-to-end test of those commands. No coverage is required here because the doc build does not use
# the test containers, but the base host image for each distribution is cached in its own GHCR package (ghcr.io/pgbackrest/doc) so
# the expensive PostgreSQL/CLI install is not rebuilt on every run.
name: doc
 
on: workflow_call
 
# Limit permissions on the repository
permissions:
  contents: read
 
jobs:
  build:
    runs-on: ubuntu-22.04
 
    # Allow pushing base images to the GHCR container cache
    permissions:
      contents: read
      packages: write
 
    strategy:
      # Let all the jobs run to completion even if one fails
      fail-fast: false
 
      matrix:
        include:
          # Debian/Ubuntu documentation
          - distro: debian
 
          # RHEL documentation
          - distro: rhel
 
    steps:
      # The release notes are checked against the full git history
      - name: Checkout Code
        uses: actions/checkout@v6
        with:
          path: pgbackrest
          fetch-depth: 0
 
      # The release notes are checked against the history of the integration branch in the project repository
      - name: Fetch Integration
        run: >-
          git -C pgbackrest fetch --quiet --no-tags https://github.com/pgbackrest/pgbackrest.git
          +refs/heads/integration:refs/remotes/upstream/integration
 
      - name: Update Apt
        uses: ./pgbackrest/.github/action/apt
 
      # Log in so base images can be pushed to the cache. Best effort -- pull is anonymous and push is skipped when the token is
      # read-only (e.g. pull requests from forks).
      - name: Login to GHCR
        continue-on-error: true
        run: echo "${{secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u ${{github.actor}} --password-stdin
 
      - name: Build Documentation
        run: cd ${HOME?} && ${GITHUB_WORKSPACE?}/pgbackrest/test/ci.py doc --distro=${{matrix.distro}}