Skip to content

Commit

Permalink
Merge pull request #6002 from clebergnu/92lts_check_copr
Browse files Browse the repository at this point in the history
check-copr-rpm-version.docker: update COPR repo and OS to Fedora 40
  • Loading branch information
richtja authored Aug 15, 2024
2 parents 6f833ec + 023ebfc commit b63407e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions contrib/containers/ci/selftests/check-copr-rpm-version.docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This container is used in selftests/pre_release/tests/check-copr-rpm-version.sh
FROM fedora:36
FROM fedora:40
LABEL description "Fedora image used on COPR RPM version check"
RUN dnf -y module disable avocado:latest
RUN dnf -y install 'dnf-command(copr)'
RUN dnf -y copr enable @avocado/avocado-latest
RUN dnf -y copr enable @avocado/avocado-latest-92lts
RUN dnf -y clean all
4 changes: 2 additions & 2 deletions selftests/pre_release/tests/check-copr-rpm-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ VERSION=$(python setup.py --version 2>/dev/null)
COMMIT_DATE=$(git log --pretty='format:%cd' --date='format:%Y%m%d' -n 1 $ORIGIN/92lts)
SHORT_COMMIT=$(git rev-parse --short=9 $ORIGIN/92lts)
RPM_RELEASE_NUMBER=$(grep -E '^Release:\s([0-9]+)' python-avocado.spec | sed -E 's/Release:\s([0-9]+).*/\1/')
DISTRO_VERSION=36
DISTRO_VERSION=40

DEFAULT_RPM_NVR="python3-avocado-${VERSION}-${RPM_RELEASE_NUMBER}.${COMMIT_DATE}git${SHORT_COMMIT}.fc${DISTRO_VERSION}"
RPM_NVR="${1:-$DEFAULT_RPM_NVR}"

PODMAN=$(which podman 2>/dev/null || which docker)
PODMAN_IMAGE=quay.io/avocado-framework/check-copr-rpm-version
PODMAN_IMAGE=quay.io/avocado-framework/check-copr-rpm-version:92lts

$PODMAN run --rm -ti $PODMAN_IMAGE /bin/bash -c "dnf -y install ${RPM_NVR}"

0 comments on commit b63407e

Please sign in to comment.