Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor-browser-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
tor-browser-build
Commits
1c24b4a9
Unverified
Commit
1c24b4a9
authored
Oct 30, 2024
by
boklm
Browse files
Options
Downloads
Patches
Plain Diff
Bug 41286: Update the deploy update scripts to optinally take an override hash
parent
ae68fd52
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1084
Bug 41286: Update the deploy update scripts to optinally take an override hash
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
+2
-30
2 additions, 30 deletions
.gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
tools/signing/upload-update_responses-to-staticiforme
+12
-4
12 additions, 4 deletions
tools/signing/upload-update_responses-to-staticiforme
with
14 additions
and
34 deletions
.gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
+
2
−
30
View file @
1c24b4a9
...
...
@@ -268,37 +268,9 @@ popd
git show
-s
--format
=
%H
```
-
On
`staticiforme.torproject.org`
, deploy new update responses:
-
**NOTE**
: for now this is a bit janky, we should somehow update the workflow to be a bit less hacky
-
[ ] Edit an existing
`deploy_update_responses-release.sh`
script in your
`HOME`
directory with the newly pushed commit hash
-
**example**
: (hash:
`d938943`
)
-
[ ] Enable update responses, passing the commit hash as argument (replace $commit):
```
bash
#!/bin/bash
set
-e
echo
"Deploying version 14.0"
echo
"update_responses_commit: d938943"
cd
"/srv/aus1-master.torproject.org/htdocs/torbrowser"
git fetch
changed_files
=
"
$(
git diff
--name-only
HEAD d938943
)
"
if
echo
"
$changed_files
"
|
grep
-qv
"release"
then
echo
>
&2
"Error: checking out new update_response_commit will changes"
echo
>
&2
"some files outside of the release directory:"
echo
"
$changed_files
"
|
grep
-v
"release"
>
&2
echo
>
&2
"--"
echo
>
&2
"If this is really what you want to do, edit this script to"
echo
>
&2
"remove the line 'exit 1' and run it again."
echo
>
&2
"See tor-browser-build#41168 for more details."
exit
1
fi
git checkout
"d938943"
static-update-component aus1.torproject.org
```
-
[ ] Enable update responses:
```
bash
sudo
-u
tb-release ./deploy_update_responses-release.sh
sudo
-u
tb-release ./deploy_update_responses-release.sh
$commit
```
</details>
...
...
...
...
This diff is collapsed.
Click to expand it.
tools/signing/upload-update_responses-to-staticiforme
+
12
−
4
View file @
1c24b4a9
...
...
@@ -55,12 +55,20 @@ cat << EOF > "$deploy_script"
#!/bin/bash
set -e
echo "Deploying version
$tbb_version
"
echo "update_responses_commit:
$update_responses_commit
"
if test "
\$
#" -gt 1; then
echo >&2 "Wrong number of arguments"
exit 2
fi
commit=
$update_responses_commit
test "
\$
#" -eq 1 && commit="
\$
1"
test "
\$
#" -eq 0 && echo "Deploying version
$tbb_version
"
echo "update_responses_commit:
\$
commit"
cd "
$update_dir
"
git fetch
changed_files="
\$
(git diff --name-only HEAD
$
update_responses_
commit
)"
changed_files="
\$
(git diff --name-only HEAD
\
$
commit)"
if echo "
\$
changed_files" | grep -qv "
$tbb_version_type
"
then
echo >&2 "Error: checking out new update_response_commit will changes"
...
...
@@ -72,7 +80,7 @@ then
echo >&2 "See tor-browser-build#41168 for more details."
exit 1
fi
git checkout "
$
update_responses_
commit
"
git checkout "
\
$
commit"
static-update-component aus1.torproject.org
EOF
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment