Skip to content

CI-5784 Add package build #7

CI-5784 Add package build

CI-5784 Add package build #7

# .github/workflows/build_and_package.yml
name: Build and Package DEB
on:
push:
branches: ['master']
tags: ['**']
pull_request:
branches: ['**']
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
gp_version: [6]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ci/Dockerfile.ubuntu
push: false
tags: diskquota:gp${{ matrix.gp_version }}
build-args: GP_MAJORVERSION=${{ matrix.gp_version }}
- name: Extract artifacts
run: |
mkdir artifacts
docker create --name temp-container diskquota:gp${{ matrix.gp_version }}
docker cp temp-container:/diskquota/Package artifacts/
docker rm temp-container
- name: Upload deb packages
uses: actions/upload-artifact@v7
with:
name: diskquota-deb-gp${{ matrix.gp_version }}
path: artifacts/Package/