forked from spotify/docker-kafka
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush-supported-versions.sh
More file actions
executable file
·39 lines (34 loc) · 1.43 KB
/
push-supported-versions.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.43 KB
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
set -e
build_version=""
if [[ -n $1 ]]; then
if [ "$1" = "-h" ]; then
echo "This script pushes the docker images for the supported kafka versions"
echo "The optional first positional argument specifies the subverion of the docker image to push"
echo "Example: './push-supported-versions.sh 111' will push aws-psyduck-production-ecr-em-proxy.internal.memcompute.com/psyduck/switchman-images/schema_kafka:2.7.0.111"
echo "After images are pushed, please add the new image names in https://fastduck.internal.memcompute.com/static_assets. For example schema_kafka:2.7.0.111"
echo ""
exit
fi
build_version="$1"
else
echo "please set the build version"
exit 1
fi
push_image () {
image_version="${1}.${build_version}"
docker push "aws-psyduck-production-ecr-em-proxy.internal.memcompute.com/psyduck/switchman-images/schema_kafka:$image_version"
if [[ "$*" == *"aio"* ]]; then
docker push "aws-psyduck-production-ecr-em-proxy.internal.memcompute.com/psyduck/switchman-images/schema_kafka-aio:$image_version"
fi
if [[ "$*" == *"oauth"* ]]; then
docker push "aws-psyduck-production-ecr-em-proxy.internal.memcompute.com/psyduck/switchman-images/schema_kafka-oauth:$image_version"
fi
}
push_image 0.8.2.1
push_image 0.10.2.1 aio
push_image 0.11.0.2 aio
push_image 1.0.1 aio
push_image 1.1.0 aio
push_image 2.0.0 aio
push_image 2.7.0 aio
push_image 3.3.1 oauth