Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Jul 18, 2024
1 parent 22b1977 commit 509e43c
Showing 1 changed file with 68 additions and 4 deletions.
72 changes: 68 additions & 4 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,81 @@ jobs:
path: /tmp/linupdate-test-build-${{ env.VERSION }}.noarch.rpm
retention-days: 1

# Try to install package on CentOS8
# install-centos8:
# name: Install on CentOS8
# needs:
# build-rpm
# runs-on: ubuntu-latest
# container:
# image: centos:8
# options: --user root
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Install CentOS8 archive repositories
# run: |
# rm /etc/yum.repos.d/* -f

# echo "[os]
# name=os repo
# baseurl=https://vault.centos.org/8-stream/BaseOS/x86_64/os/
# enabled=1
# gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official-SHA256
# gpgcheck=1" > /etc/yum.repos.d/os.repo

# echo "[appstream]
# name=updates repo
# baseurl=https://vault.centos.org/8-stream/AppStream/x86_64/os/
# enabled=1
# gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official-SHA256
# gpgcheck=1" > /etc/yum.repos.d/appstream.repo

# echo "[extras]
# name=extras repo
# baseurl=https://vault.centos.org/8-stream/extras/x86_64/extras-common/
# enabled=1
# gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official-SHA256
# gpgcheck=1" > /etc/yum.repos.d/extras.repo

# dnf clean all

# - name: Get linupdate version
# run: echo "VERSION=$(cat ${GITHUB_WORKSPACE}/version)" >> $GITHUB_ENV

# # Download builded deb package artifact
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: linupdate-test-build-${{ env.VERSION }}.noarch.rpm

# - name: Install package
# run: |
# dnf update -y
# dnf clean all
# dnf --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm

# - name: Launch linupdate
# run: python3 /opt/linupdate/linupdate.py --check-updates

# - name: Test some params
# run: |
# python3 /opt/linupdate/linupdate.py --help
# python3 /opt/linupdate/linupdate.py --version
# python3 /opt/linupdate/linupdate.py --check-updates
# python3 /opt/linupdate/linupdate.py --profile container
# python3 /opt/linupdate/linupdate.py --env test


# Try to install package on latest Fedora
install-fedora:
name: Install on latest Fedora
needs:
build-rpm
runs-on: ubuntu-latest
container:
image: fedora:37
image: fedora:latest
options: --user root
steps:
- name: Checkout
Expand All @@ -118,9 +185,6 @@ jobs:
dnf update -y
dnf clean all
dnf --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm
- name: debug
run: ls -l /opt/linupdate/
- name: Launch linupdate
run: python3 /opt/linupdate/linupdate.py --check-updates
Expand Down

0 comments on commit 509e43c

Please sign in to comment.