-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-images.sh
executable file
·101 lines (55 loc) · 3.62 KB
/
publish-images.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/sh
DOCKER_HUB_ACCOUNT_NAME="piotrjustyna"
VERSION="2.1.0"
ARGON_TAG_NAME=argon
ARGON_MICRO_TAG_VERSION="$VERSION-micro"
ARGON_MICRO_TAG_ARM64="$ARGON_TAG_NAME:$ARGON_MICRO_TAG_VERSION-arm64"
ARGON_MICRO_TAG_AMD64="$ARGON_TAG_NAME:$ARGON_MICRO_TAG_VERSION-amd64"
ARGON_DOTNET_MICRO_TAG_VERSION="$VERSION-dotnet-micro"
ARGON_DOTNET_MICRO_TAG_ARM64="$ARGON_TAG_NAME:$ARGON_DOTNET_MICRO_TAG_VERSION-arm64"
ARGON_DOTNET_MICRO_TAG_AMD64="$ARGON_TAG_NAME:$ARGON_DOTNET_MICRO_TAG_VERSION-amd64"
ARGON_TAG_VERSION="$VERSION"
ARGON_TAG_ARM64="$ARGON_TAG_NAME:$ARGON_TAG_VERSION-arm64"
ARGON_TAG_AMD64="$ARGON_TAG_NAME:$ARGON_TAG_VERSION-amd64"
ARGON_DOTNET_TAG_VERSION="$VERSION-dotnet"
ARGON_DOTNET_TAG_ARM64="$ARGON_TAG_NAME:$ARGON_DOTNET_TAG_VERSION-arm64"
ARGON_DOTNET_TAG_AMD64="$ARGON_TAG_NAME:$ARGON_DOTNET_TAG_VERSION-amd64"
# --- build ------------------------------------ #
# --- argon-micro ------------------------------ #
docker buildx build -f "./argon-micro/dockerfile" -t "$ARGON_MICRO_TAG_ARM64" --platform "linux/arm64" .
docker buildx build -f "./argon-micro/dockerfile" -t "$ARGON_MICRO_TAG_AMD64" --platform "linux/amd64" .
# --- argon-dotnet-micro ------------------------------ #
docker buildx build -f "./argon-dotnet-micro/dockerfile" -t "$ARGON_DOTNET_MICRO_TAG_ARM64" --platform "linux/arm64" .
docker buildx build -f "./argon-dotnet-micro/dockerfile" -t "$ARGON_DOTNET_MICRO_TAG_AMD64" --platform "linux/amd64" .
# --- argon ------------------------------------ #
docker buildx build -f "./argon/dockerfile" -t "$ARGON_TAG_ARM64" --platform "linux/arm64" .
docker buildx build -f "./argon/dockerfile" -t "$ARGON_TAG_AMD64" --platform "linux/amd64" .
# --- argon dotnet ----------------------------- #
docker buildx build -f "./argon-dotnet/dockerfile" -t "$ARGON_DOTNET_TAG_ARM64" --platform "linux/arm64" .
docker buildx build -f "./argon-dotnet/dockerfile" -t "$ARGON_DOTNET_TAG_AMD64" --platform "linux/amd64" .
# --- tag -------------------------------------- #
# --- argon-micro ------------------------------ #
docker tag "$ARGON_MICRO_TAG_ARM64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_MICRO_TAG_ARM64"
docker tag "$ARGON_MICRO_TAG_AMD64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_MICRO_TAG_AMD64"
# --- argon-dotnet-micro ------------------------------ #
docker tag "$ARGON_DOTNET_MICRO_TAG_ARM64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_MICRO_TAG_ARM64"
docker tag "$ARGON_DOTNET_MICRO_TAG_AMD64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_MICRO_TAG_AMD64"
# --- argon ------------------------------------ #
docker tag "$ARGON_TAG_ARM64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_TAG_ARM64"
docker tag "$ARGON_TAG_AMD64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_TAG_AMD64"
# --- argon dotnet ----------------------------- #
docker tag "$ARGON_DOTNET_TAG_ARM64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_TAG_ARM64"
docker tag "$ARGON_DOTNET_TAG_AMD64" "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_TAG_AMD64"
# --- publish ---------------------------------- #
# --- argon-micro ------------------------------ #
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_MICRO_TAG_ARM64"
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_MICRO_TAG_AMD64"
# --- argon-dotnet-micro ------------------------------ #
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_MICRO_TAG_ARM64"
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_MICRO_TAG_AMD64"
# --- argon ------------------------------------ #
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_TAG_ARM64"
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_TAG_AMD64"
# --- argon dotnet ----------------------------- #
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_TAG_ARM64"
docker push "$DOCKER_HUB_ACCOUNT_NAME/$ARGON_DOTNET_TAG_AMD64"