mirror of
https://github.com/goreleaser/nfpm
synced 2026-08-14 11:04:20 +02:00
* fix(deps): bump fedora from 40 to 44 in /testdata/acceptance Bumps fedora from 40 to 44. --- updated-dependencies: - dependency-name: fedora dependency-version: '44' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix(tests): keep Fedora 40 acceptance fixture pinned * test(acceptance): rename Fedora 41 fixture to modern Fedora and relax signature check * test: rename rpm_fedora41.dockerfile to rpm_fedora_modern.dockerfile * test: use rpm_fedora_modern.dockerfile in TestRPMSign * Revert "test: use rpm_fedora_modern.dockerfile in TestRPMSign" This reverts commit6f73a43925. * Revert "test: rename rpm_fedora41.dockerfile to rpm_fedora_modern.dockerfile" This reverts commitc30ace776a. * chore: comments Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: update rpm -vK grep pattern for Fedora 44 fingerprint format --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
21 lines
669 B
Docker
21 lines
669 B
Docker
# keep for checking old-ish fedora version:
|
|
FROM fedora:40 AS test_base
|
|
RUN yum install -y createrepo yum-utils
|
|
ARG package
|
|
RUN echo "${package}"
|
|
COPY ${package} /tmp/foo.rpm
|
|
|
|
FROM test_base AS signed
|
|
COPY keys/pubkey.asc /tmp/pubkey.asc
|
|
RUN rpm --import /tmp/pubkey.asc
|
|
RUN rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
|
|
RUN rpm -vK /tmp/foo.rpm
|
|
RUN rpm -vK /tmp/foo.rpm | grep "RSA/SHA256 Signature, key ID 15bd80b3: OK"
|
|
RUN rpm -K /tmp/foo.rpm
|
|
RUN rpm -K /tmp/foo.rpm | grep -E "(?:pgp|digests signatures) OK"
|
|
|
|
RUN rm -rf /etc/yum.repos.d/*.repo
|
|
COPY keys/test.rpm.repo /etc/yum.repos.d/test.rpm.repo
|
|
RUN createrepo /tmp
|
|
RUN yum install -y foo
|