Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.15 #57

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 80 additions & 1 deletion .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,19 @@ jobs:
apt-get update -y
apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install package on Debian 11
install-debian-11:
name: Install on Debian 11
Expand Down Expand Up @@ -123,6 +136,59 @@ jobs:
apt-get update -y
apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install package on Debian 12
install-debian-12:
name: Install on Debian 12
needs:
build-deb
runs-on: ubuntu-latest
container:
image: debian:12
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v3

- 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 }}_all.deb

- name: Install package
run: |
apt-get update -y
apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install package on Ubuntu (latest)
install-ubuntu:
name: Install on Ubuntu (latest)
Expand All @@ -145,4 +211,17 @@ jobs:
- name: Install package
run: |
sudo apt-get update -y
sudo apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb
sudo apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb

- name: Test some params
run: |
sudo /opt/linupdate/linupdate --help
sudo /opt/linupdate/linupdate --version
sudo /opt/linupdate/linupdate --check-updates
sudo /opt/linupdate/linupdate --profile container
sudo /opt/linupdate/linupdate --env test
sudo /opt/linupdate/linupdate --mod-enable reposerver
sudo /opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
sudo /opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
sudo /opt/linupdate/linupdate --mod-configure reposerver --send-full-status
sudo /opt/linupdate/linupdate --mod-configure reposerver --unregister
176 changes: 173 additions & 3 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,163 @@ jobs:
path: /tmp/linupdate-test-build-${{ env.VERSION }}.noarch.rpm
retention-days: 1

# Try to install packages on CentOS 7
install-centos7:
name: Install on CentOS 7
needs:
build-rpm
runs-on: ubuntu-latest
container:
image: centos:7
options: --user root
env:
# Force to use node16 (for actions/checkout@v3)
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- name: Checkout
uses: actions/checkout@v3

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

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

echo "[os]
name=os repo
baseurl=https://vault.centos.org/7.9.2009/os/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1" > /etc/yum.repos.d/os.repo

echo "[extras]
name=extras repo
baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1" > /etc/yum.repos.d/extras.repo

echo "[updates]
name=updates repo
baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1" > /etc/yum.repos.d/updates.repo

echo "[epel]
name=epel repo
baseurl=https://dl.fedoraproject.org/pub/epel/7/x86_64/
enabled=1
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
gpgcheck=1" > /etc/yum.repos.d/epel.repo

yum clean all

# 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: yum --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install packages on RockyLinux 8
install-rockylinux8:
name: Install on RockyLinux 8
needs:
build-rpm
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:8
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install EPEL repository
run: dnf install epel-release glibc-langpack-en -y

# 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: yum --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install packages on RockyLinux 9
install-rockylinux9:
name: Install on RockyLinux 9
needs:
build-rpm
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install EPEL repository
run: dnf install epel-release glibc-langpack-en -y

# 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: yum --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm

- name: Test some params
run: |
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister

# Try to install packages on latest Fedora
install-fedora:
Expand All @@ -118,14 +275,27 @@ jobs:
- name: Get linupdate version
run: echo "VERSION=$(cat ${GITHUB_WORKSPACE}/version)" >> $GITHUB_ENV

- name: Install dependencies packages
run: dnf install glibc-langpack-en hostname -y

# 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 --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm

- name: Test some params
run: |
dnf update -y
dnf clean all
dnf --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm
/opt/linupdate/linupdate --help
/opt/linupdate/linupdate --version
/opt/linupdate/linupdate --check-updates
/opt/linupdate/linupdate --profile container
/opt/linupdate/linupdate --env test
/opt/linupdate/linupdate --mod-enable reposerver
/opt/linupdate/linupdate --mod-configure reposerver --url https://packages.bespin.ovh --fail-level 3
/opt/linupdate/linupdate --mod-configure reposerver --api-key ${{ secrets.REPOSITORY_TOKEN }} --register
/opt/linupdate/linupdate --mod-configure reposerver --send-full-status
/opt/linupdate/linupdate --mod-configure reposerver --unregister
2 changes: 1 addition & 1 deletion .github/workflows/packaging/deb/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: __VERSION__
Section: main
Priority: optional
Architecture: all
Depends: curl, git, apt-transport-https, aptitude, mutt, locales, ngrep, inotify-tools, jq, virt-what, net-tools, dnsutils, locales-all
Depends: curl, apt-transport-https, aptitude, mutt, locales, ngrep, inotify-tools, jq, virt-what, net-tools, dnsutils, locales-all
Maintainer: Ludovic <[email protected]>
Description: Linupdate package updater - Repomanager client side agent
Homepage: https://github.com/lbr38/linupdate
1 change: 0 additions & 1 deletion .github/workflows/packaging/rpm/spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ License: GPL-3.0
URL: https://github.com/lbr38/linupdate

Requires: curl
Requires: git
Requires: mutt
Requires: ngrep
Requires: inotify-tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
release_name: ${{ env.VERSION }}
body: |
**Changes**:

- Added support for RHEL 8/9 based OS
draft: false
prerelease: false

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ It should help you **installing** and starting using linupdate.
--ignore-exclude|-ie → Ignore all packages minor or major release update exclusions

Modules
--list-modules|--list-mod|-m → List available modules
--mod-enable|-mod-enable|-me MODULE → Enable specified module
--mod-disable|-mod-disable|-md MODULE → Disable specified module
--mod-configure|-mc|--mod-exec MODULE → Configure specified module (using module commands, see module help or documentation)
Expand Down
4 changes: 0 additions & 4 deletions linupdate
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ while [ $# -ge 1 ];do
fi
clean_exit
;;
--list-modules|--list-mod|-m)
listModules
clean_exit
;;
--ignore-exclude|-ie)
IGNORE_EXCLUDE=1
;;
Expand Down
4 changes: 2 additions & 2 deletions mods-available/configurations/reposerver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FAILLEVEL=""
[CLIENT]
ID=""
TOKEN=""
GET_PROFILE_PKG_CONF_FROM_REPOSERVER=""
GET_PROFILE_REPOS_FROM_REPOSERVER=""
GET_PROFILE_PKG_CONF_FROM_REPOSERVER="true"
GET_PROFILE_REPOS_FROM_REPOSERVER="true"

[REPOSERVER]
IP=""
Expand Down
Loading
Loading