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
5ddd33ee
Commit
5ddd33ee
authored
Oct 20, 2020
by
intrigeri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release process: move shell snippet to external script
refs
#17977
parent
4a8eaa9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
26 deletions
+66
-26
bin/add-release-to-iso-history
bin/add-release-to-iso-history
+60
-0
wiki/src/contribute/release_process.mdwn
wiki/src/contribute/release_process.mdwn
+6
-26
No files found.
bin/add-release-to-iso-history
0 → 100755
View file @
5ddd33ee
#!/bin/bash
set
-eu
set
-o
pipefail
NAME
=
$(
basename
"
${
0
}
"
)
LONGOPTS
=
"version:,isos:,release-branch:,matching-jenkins-images-build-id:"
OPTS
=
$(
getopt
-o
""
--longoptions
$LONGOPTS
-n
"
${
NAME
}
"
--
"
$@
"
)
eval set
--
"
$OPTS
"
while
[
$#
-gt
0
]
;
do
case
$1
in
--version
)
shift
VERSION
=
"
$1
"
;;
--isos
)
shift
ISOS
=
"
$1
"
;;
--release-branch
)
shift
RELEASE_BRANCH
=
"
$1
"
;;
--matching-jenkins-images-build-id
)
shift
MATCHING_JENKINS_IMAGES_BUILD_ID
=
"
$1
"
;;
esac
shift
done
ssh misc.lizard
mkdir
"tails-amd64-
${
VERSION
:?
}
"
scp
"
${
ISOS
:?
}
/tails-amd64-
${
VERSION
:?
}
/tails-amd64-
${
VERSION
:?
}
."
{
apt-sources,build-manifest,buildlog,packages,iso.sig,img.sig
}
\
"misc.lizard:tails-amd64-
${
VERSION
:?
}
"
ssh misc.lizard gpg
--import
<
"wiki/src/tails-signing.key"
ssh misc.lizard
<<
EOF
cd tails-amd64-
${
VERSION
:?
}
&&
\
wget --quiet
\
"https://nightly.tails.boum.org/build_Tails_ISO_
${
RELEASE_BRANCH
:?
}
/builds/
${
MATCHING_JENKINS_IMAGES_BUILD_ID
:?
}
/archive/build-artifacts/tails-amd64-
${
VERSION
:?
}
.iso"
\
"https://nightly.tails.boum.org/build_Tails_ISO_
${
RELEASE_BRANCH
:?
}
/builds/
${
MATCHING_JENKINS_IMAGES_BUILD_ID
:?
}
/archive/build-artifacts/tails-amd64-
${
VERSION
:?
}
.img" &&
\
gpg --verify tails-amd64-
${
VERSION
:?
}
.iso{.sig,} &&
\
gpg --verify tails-amd64-
${
VERSION
:?
}
.img{.sig,}
EOF
ssh misc.lizard
<<
EOF
( [ -d isos ] || git clone gitolite@puppet-git.lizard:isos.git ) &&
\
cd isos &&
\
git annex init &&
\
git annex sync &&
\
git annex import ../tails-amd64-
${
VERSION
:?
}
&&
\
rmdir ../tails-amd64-
${
VERSION
:?
}
&&
\
git commit -m "Add Tails
${
VERSION
:?
}
" &&
\
git annex sync &&
\
git annex copy tails-amd64-
${
VERSION
:?
}
--to origin &&
\
git annex drop tails-amd64-
${
VERSION
:?
}
&&
\
git annex sync
EOF
wiki/src/contribute/release_process.mdwn
View file @
5ddd33ee
...
...
@@ -934,32 +934,12 @@ repo, so that:
Make sure that Jenkins has finished building so you have set
`MATCHING_JENKINS_IMAGES_BUILD_ID` (see above), then run:
ssh misc.lizard mkdir tails-amd64-${VERSION:?} && \
scp "${ISOS:?}"/tails-amd64-${VERSION:?}/tails-amd64-${VERSION:?}.{apt-sources,build-manifest,buildlog,packages,iso.sig,img.sig} \
misc.lizard:tails-amd64-${VERSION:?} && \
cat "${RELEASE_CHECKOUT:?}/wiki/src/tails-signing.key" \
| ssh misc.lizard gpg --import && \
ssh misc.lizard << EOF
cd tails-amd64-${VERSION:?} && \
wget --quiet \
"https://nightly.tails.boum.org/build_Tails_ISO_${RELEASE_BRANCH:?}/builds/${MATCHING_JENKINS_IMAGES_BUILD_ID:?}/archive/build-artifacts/tails-amd64-${VERSION:?}.iso" \
"https://nightly.tails.boum.org/build_Tails_ISO_${RELEASE_BRANCH:?}/builds/${MATCHING_JENKINS_IMAGES_BUILD_ID:?}/archive/build-artifacts/tails-amd64-${VERSION:?}.img" && \
gpg --verify tails-amd64-${VERSION:?}.iso{.sig,} && \
gpg --verify tails-amd64-${VERSION:?}.img{.sig,}
EOF
ssh misc.lizard << EOF
( [ -d isos ] || git clone gitolite@puppet-git.lizard:isos.git ) && \
cd isos && \
git annex init && \
git annex sync && \
git annex import ../tails-amd64-${VERSION:?} && \
rmdir ../tails-amd64-${VERSION:?} && \
git commit -m "Add Tails ${VERSION:?}" && \
git annex sync && \
git annex copy tails-amd64-${VERSION:?} --to origin && \
git annex drop tails-amd64-${VERSION:?} && \
git annex sync
EOF
cd "${RELEASE_CHECKOUT:?}" && \
./bin/add-release-to-iso-history \
--version "${VERSION:?}" \
--isos "${ISOS:?}" \
--release-branch "${RELEASE_BRANCH:?}" \
--matching-jenkins-images-build-id "${MATCHING_JENKINS_IMAGES_BUILD_ID:?}"
Then, wait (a few minutes, `*/15` crontab) until the images appear
on <https://iso-history.tails.boum.org/?C=M&O=D>.
...
...
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