Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
e0fa6319
Commit
e0fa6319
authored
Oct 20, 2020
by
intrigeri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release process: move shell snippet to external script
parent
18229e65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
30 deletions
+36
-30
bin/apt-snapshots-expiry
bin/apt-snapshots-expiry
+35
-0
wiki/src/contribute/release_process.mdwn
wiki/src/contribute/release_process.mdwn
+1
-30
No files found.
bin/apt-snapshots-expiry
0 → 100755
View file @
e0fa6319
#!/bin/sh
set
-eu
for
dir
in
config/APT_snapshots.d vagrant/definitions/tails-builder/config/APT_snapshots.d
;
do
(
set
-eu
echo
"
${
dir
:?
}
:"
cd
"
${
dir
:?
}
"
&&
\
for
ARCHIVE
in
*
;
do
SERIAL
=
"
$(
cat
${
ARCHIVE
:?
}
/serial
)
"
if
[
"
${
SERIAL
:?
}
"
=
'latest'
]
;
then
EXPIRY
=
'never'
if
[
"
${
ARCHIVE
:?
}
"
!=
'debian-security'
]
;
then
echo
"Warning: origin '
${
ARCHIVE
:?
}
' is using the 'latest' snapshot, which is unexpected"
>
&2
fi
else
case
"
${
ARCHIVE
:?
}
"
in
'debian-security'
)
DIST
=
'buster/updates'
;;
'torproject'
)
DIST
=
'buster'
;;
*
)
DIST
=
'stable'
;;
esac
EXPIRY
=
"
$(
curl
--silent
"https://time-based.snapshots.deb.tails.boum.org/
${
ARCHIVE
:?
}
/dists/
${
DIST
:?
}
/snapshots/
${
SERIAL
:?
}
/Release"
|
sed
-n
's/^Valid-Until:\s\+\(.*\)$/\1/p'
)
"
fi
echo
"* Archive '
${
ARCHIVE
:?
}
' uses snapshot '
${
SERIAL
:?
}
' which expires on:
${
EXPIRY
:?
}
"
done
echo
---
)
done
wiki/src/contribute/release_process.mdwn
View file @
e0fa6319
...
...
@@ -1828,36 +1828,7 @@ If you just released a final release
cd "${RELEASE_CHECKOUT:?}" && \
git checkout "${RELEASE_BRANCH:?}" && \
for dir in config/APT_snapshots.d vagrant/definitions/tails-builder/config/APT_snapshots.d; do
(
echo "${dir:?}:"
cd "${dir:?}" && \
for ARCHIVE in * ; do
SERIAL="$(cat ${ARCHIVE:?}/serial)"
if [ "${SERIAL:?}" = 'latest' ]; then
EXPIRY='never'
if [ "${ARCHIVE:?}" != 'debian-security' ]; then
echo "Warning: origin '${ARCHIVE:?}' is using the 'latest' snapshot, which is unexpected" >&2
fi
else
case "${ARCHIVE:?}" in
'debian-security')
DIST='buster/updates'
;;
'torproject')
DIST='buster'
;;
*)
DIST='stable'
;;
esac
EXPIRY="$(curl --silent "https://time-based.snapshots.deb.tails.boum.org/${ARCHIVE:?}/dists/${DIST:?}/snapshots/${SERIAL:?}/Release" | sed -n 's/^Valid-Until:\s\+\(.*\)$/\1/p')"
fi
echo "* Archive '${ARCHIVE:?}' uses snapshot '${SERIAL:?}' which expires on: ${EXPIRY:?}"
done
echo ---
)
done
./bin/apt-snapshots-expiry
1. Push the resulting branches.
1. Make sure Jenkins manages to build all updated major branches:
...
...
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