1
1
mirror of https://github.com/goreleaser/nfpm synced 2025-10-08 23:15:10 +02:00

test: centos8 mirrorlist has been down for a long time

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-07-05 11:23:31 -03:00
parent 41b334968e
commit 66d1a0684c
No known key found for this signature in database
2 changed files with 1 additions and 21 deletions

@ -297,7 +297,7 @@ func TestIPKSpecific(t *testing.T) {
func TestRPMSign(t *testing.T) {
t.Parallel()
for _, os := range []string{"centos9", "centos8", "fedora34", "fedora36", "fedora38"} {
for _, os := range []string{"centos9", "fedora34", "fedora36", "fedora38"} {
os := os
t.Run(fmt.Sprintf("rpm/amd64/sign/%s", os), func(t *testing.T) {
t.Parallel()

@ -1,20 +0,0 @@
FROM quay.io/centos/centos:stream8 AS test_base
ARG package
RUN yum install -y createrepo yum-utils
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