File tree Expand file tree Collapse file tree 4 files changed +32
-8
lines changed Expand file tree Collapse file tree 4 files changed +32
-8
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # This script is executed at the start of each local release for Rustup, and
4
+ # prepares the environment by copying the artifacts built by CI onto the MinIO
5
+ # instance. Then, it starts promote-release with the right flags.
6
+
7
+ set -euo pipefail
8
+ IFS=$' \n\t '
Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ cat <<EOF
77
77
78
78
To start the release process locally, run either:
79
79
80
- ./run.sh nightly
81
- ./run.sh beta
82
- ./run.sh stable
80
+ ./run.sh release nightly
81
+ ./run.sh release beta
82
+ ./run.sh release stable
83
83
84
84
To use a release produced locally, set this environment variable when
85
85
interacting with rustup:
Original file line number Diff line number Diff line change 5
5
set -euo pipefail
6
6
IFS=$' \n\t '
7
7
8
- if [[ " $# " -lt 1 ]] || [[ " $# " -gt 2 ]]; then
9
- echo " Usage: $0 <channel> [commit]"
8
+ if [[ " $# " -lt 1 ]]; then
9
+ echo " Usage: $0 <release|rustup>"
10
+ exit 1
11
+ fi
12
+ command=" $1 "
13
+
14
+ if [[ " ${command} " == " release" ]]; then
15
+ if [[ " $# " -lt 2 ]] || [[ " $# " -gt 3 ]]; then
16
+ echo " Usage: $0 release <stable|dev|nightly> [commit]"
17
+ exit 1
18
+ fi
19
+ fi
20
+
21
+ if [[ " ${command} " == " rustup" ]]; then
22
+ if [[ " $# " -ne 2 ]]; then
23
+ echo " Usage: $0 rustup <stable|dev> [commit]"
10
24
exit 1
25
+ fi
11
26
fi
12
- channel=" $1 "
13
- override_commit=" ${2-} "
27
+
28
+ channel=" $2 "
29
+ override_commit=" ${3-} "
14
30
15
31
container_id=" $( docker-compose ps -q local) "
16
32
if [[ " ${container_id} " == " " ]]; then
31
47
cargo build --release
32
48
33
49
# Run the command inside the docker environment.
34
- docker-compose exec -T local /src/local/run .sh " ${channel} " " ${override_commit} "
50
+ docker-compose exec -T local " /src/local/${command} .sh" " ${channel} " " ${override_commit} "
You can’t perform that action at this time.
0 commit comments