clarify/acknowledge security limitations
[tails.git] / bin / publish-test-udfs
blob42a3eb1ef20d7a1f1c755e0a65d31fa62cefbcac
1 #!/bin/bash
3 set -eu
4 set -x
6 cd "${MASTER_CHECKOUT:?}"
7 git fetch
8 git switch master
9 git merge origin/master
11 release_udf="wiki/src/upgrade/v2/Tails/${PREVIOUS_STABLE_VERSION:?}/amd64/${DIST:?}/upgrades.yml"
12 test_udf="wiki/src/upgrade/v2/Tails/${PREVIOUS_STABLE_VERSION:?}/amd64/test/upgrades.yml"
14 mkdir -p "$(dirname "$test_udf")"
15 git show "origin/${WEBSITE_RELEASE_BRANCH:?}:${release_udf:?}" \
16 | sed -e "s/channel: ${DIST:?}/channel: test/" > "${test_udf:?}"
17 echo "Signing ${test_udf:?}"
18 gpg -u "${TAILS_SIGNATURE_KEY:?}" --armor --detach-sign "${test_udf:?}"
19 mv "${test_udf:?}".asc "${test_udf:?}".pgp
20 git add "${test_udf:?}"*
21 git commit -m "Add incremental upgrades on the test channel for Tails ${VERSION:?}"
22 git push origin master:master