Skip to content

Commit 7e48a28

Browse files
committed
Simplify docker build script
1 parent 22a8324 commit 7e48a28

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

compiler/build.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ channels_to_build="${CHANNELS_TO_BUILD-stable beta nightly}"
77
repository=shepmaster
88

99
for channel in $channels_to_build; do
10-
cd "base"
11-
1210
image_name="rust-${channel}"
1311
full_name="${repository}/${image_name}"
1412

15-
docker build -t "${full_name}" \
13+
docker build \
14+
-t "${image_name}" \
15+
-t "${full_name}" \
1616
--build-arg channel="${channel}" \
17-
.
18-
19-
docker tag "${full_name}" "${image_name}"
20-
21-
cd ..
17+
base
2218
done

0 commit comments

Comments
 (0)