-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildx-tags.sh
85 lines (74 loc) · 3.46 KB
/
buildx-tags.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# Install buildx
# Post https://devdotnet.org/post/sborka-docker-konteinerov-dlya-arm-arhitekturi-ispolzuya-buildx/
# $ chmod +x buildx-tags.sh
# $ ./buildx-tags.sh
set -e
echo "Start BUILDX"
for LIB_VERSION in 1.6.4 2.1.2
do
echo "BUILD version: ${LIB_VERSION} Ubuntu 24.04"
#Ubuntu 24.04 LTS
#------
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.ubuntu \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=ubuntu:24.04 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-ubuntu-24.04 . --push
#
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.ubuntu \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=ubuntu:24.04 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-ubuntu . --push
echo "BUILD version: ${LIB_VERSION} Alpine 3.20"
#Alpine 3.20
#------
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=alpine:3.20 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-alpine-3.20 . --push
#
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=alpine:3.20 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-alpine . --push
#:latest-version
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=alpine:3.20 \
-t devdotnetorg/libgpiod:${LIB_VERSION} . --push
done
#:latest
LIB_VERSION=2.1.2
#
echo "BUILD version: ${LIB_VERSION} :latest"
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=alpine:3.20 \
-t devdotnetorg/libgpiod . --push
# RISC-V (riscv64)
for LIB_VERSION in 1.6.4 2.1.2
do
echo "BUILD version: ${LIB_VERSION} riscv64/ubuntu:22.04"
#Ubuntu 22.04 LTS (Jammy Jellyfish)
#------
docker buildx build --platform linux/riscv64 -f Dockerfile.ubuntu \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/ubuntu:22.04 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-ubuntu-22.04-riscv64 . --push
docker buildx build --platform linux/riscv64 -f Dockerfile.ubuntu \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/ubuntu:22.04 \
-t devdotnetorg/libgpiod:${LIB_VERSION}-ubuntu-riscv64 . --push
echo "BUILD version: ${LIB_VERSION} riscv64/alpine:edge"
#Alpine edge
#------
docker buildx build --platform linux/riscv64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/alpine:edge \
-t devdotnetorg/libgpiod:${LIB_VERSION}-alpine-edge-riscv64 . --push
#
docker buildx build --platform linux/riscv64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/alpine:edge \
-t devdotnetorg/libgpiod:${LIB_VERSION}-alpine-riscv64 . --push
done
#:latest-riscv64
LIB_VERSION=2.1.2
#
docker buildx build --platform linux/riscv64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/alpine:edge \
-t devdotnetorg/libgpiod:${LIB_VERSION}-riscv64 . --push
docker buildx build --platform linux/riscv64 -f Dockerfile.alpine \
--build-arg LIB_VERSION=${LIB_VERSION} --build-arg IMAGE_VERSION=riscv64/alpine:edge \
-t devdotnetorg/libgpiod:riscv64 . --push
echo "BUILDX END"