Skip to content

[1.29] feat: Enable automatic cloud registration v2 again #761

[1.29] feat: Enable automatic cloud registration v2 again

[1.29] feat: Enable automatic cloud registration v2 again #761

Workflow file for this run

name: tito
on:
pull_request:
workflow_dispatch:
jobs:
tito:
name: "tito"
strategy:
fail-fast: false
matrix:
include:
- name: "CentOS Stream 9"
image: "quay.io/centos/centos:stream9"
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- name: Install core packages
run: |
dnf --setopt install_weak_deps=False install -y \
git-core dnf-plugins-core rpm-build sudo
- name: Enable CRB repository
if: ${{ matrix.name == 'CentOS Stream 9' }}
run: |
dnf config-manager --enable crb
- name: Checkout repository
uses: actions/checkout@v4
# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'
- name: Install packages
run: |
dnf --setopt install_weak_deps=False builddep -y \
-D '%global python3_pkgversion 3' \
subscription-manager.spec
- name: Install tito (using DNF)
if: ${{ startsWith(matrix.name, 'Fedora') }}
run: |
dnf --setopt install_weak_deps=False install -y \
tito
- name: Install tito (using pip)
if: ${{ startsWith(matrix.name, 'CentOS') }}
run: |
dnf --setopt install_weak_deps=False install -y \
python3-pip python3-setuptools
pip install https://github.com/rpm-software-management/tito/archive/refs/tags/tito-0.6.22-1.tar.gz
- name: Build the package
run: |
tito build --output=tito/ --test --rpm
- name: Upload RPMs
uses: actions/upload-artifact@v4
with:
name: RPMs from tito (${{ matrix.name }})
path: tito/
retention-days: 7