Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
toolkit
Commits
58d999af
Unverified
Commit
58d999af
authored
Jul 11, 2021
by
Louis Abel
📺
Browse files
add repo signing (temporary call)
parent
98eba8f2
Pipeline
#37
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sync/prep-staging-8.sh
View file @
58d999af
...
@@ -23,6 +23,8 @@ for y in "${ALL_REPOS[@]}"; do
...
@@ -23,6 +23,8 @@ for y in "${ALL_REPOS[@]}"; do
if
[
"
$ret_val
"
-eq
0
]
;
then
if
[
"
$ret_val
"
-eq
0
]
;
then
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree"
\
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree"
\
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree/repodata/repomd.xml"
else
else
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree does not exist"
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree does not exist"
fi
fi
...
@@ -41,6 +43,8 @@ for x in "${ARCHES[@]}"; do
...
@@ -41,6 +43,8 @@ for x in "${ARCHES[@]}"; do
if
[
"
$ret_val
"
-eq
0
]
;
then
if
[
"
$ret_val
"
-eq
0
]
;
then
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
"
\
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
"
\
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
/repodata/repomd.xml"
else
else
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
does not exist"
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
does not exist"
fi
fi
...
@@ -53,6 +57,8 @@ for x in "${ARCHES[@]}"; do
...
@@ -53,6 +57,8 @@ for x in "${ARCHES[@]}"; do
if
[
"
$ret_val
"
-eq
0
]
;
then
if
[
"
$ret_val
"
-eq
0
]
;
then
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree"
\
createrepo
--update
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree"
\
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree/repodata/repomd.xml"
else
else
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree does not exist"
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree does not exist"
fi
fi
...
@@ -69,6 +75,8 @@ for x in "${ARCHES[@]}"; do
...
@@ -69,6 +75,8 @@ for x in "${ARCHES[@]}"; do
--xz
--revision
=
"
${
REVISION
}
"
\
--xz
--revision
=
"
${
REVISION
}
"
\
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
\
"--distro=cpe:/o:rocky:rocky:
${
REVISION
:0:1
}
,Rocky Linux
${
REVISION
:0:1
}
"
\
--workers
=
8
--checksum
=
sha256
--workers
=
8
--checksum
=
sha256
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata/repomd.xml"
else
else
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os does not exist"
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os does not exist"
fi
fi
...
@@ -84,6 +92,9 @@ for x in "${ARCHES[@]}"; do
...
@@ -84,6 +92,9 @@ for x in "${ARCHES[@]}"; do
modifyrepo
--mdtype
=
modules /tmp/modules.yaml
\
modifyrepo
--mdtype
=
modules /tmp/modules.yaml
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata"
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata"
\
--compress
--compress-type
=
gz
--compress
--compress-type
=
gz
# This might not be necessary, but it does not hurt incase repomd is modified
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata/repomd.xml"
else
else
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os does not exist"
echo
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os does not exist"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment