forked from rust-lang/docker-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
push.sh
executable file
·35 lines (31 loc) · 1.26 KB
/
push.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env sh
IMAGE_NAME=ghcr.io/yumemi-inc/rust
PLATFORMS=linux/arm64/v8,linux/amd64
RUST_VERSION_MAJOR=1
RUST_VERSION_MINOR=73
RUST_VERSION_PATCH=0
RUST_VERSION_3="$RUST_VERSION_MAJOR.$RUST_VERSION_MINOR.$RUST_VERSION_PATCH"
RUST_VERSION_2="$RUST_VERSION_MAJOR.$RUST_VERSION_MINOR"
RUST_VERSION_1="$RUST_VERSION_MAJOR"
docker buildx build --push \
--platform "$PLATFORMS" \
--tag "$IMAGE_NAME:$RUST_VERSION_3-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_3-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_2-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_2-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_1-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_1-mold" \
--tag "$IMAGE_NAME:bookworm-mold" \
--tag "$IMAGE_NAME:mold" \
"./$RUST_VERSION_3/bookworm/mold"
docker buildx build --push \
--platform "$PLATFORMS" \
--tag "$IMAGE_NAME:$RUST_VERSION_3-slim-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_3-slim-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_2-slim-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_2-slim-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_1-slim-bookworm-mold" \
--tag "$IMAGE_NAME:$RUST_VERSION_1-slim-mold" \
--tag "$IMAGE_NAME:slim-bookworm-mold" \
--tag "$IMAGE_NAME:slim-mold" \
"./$RUST_VERSION_3/bookworm/slim/mold"