forked from disney/meteor-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush.sh
More file actions
executable file
·31 lines (26 loc) · 861 Bytes
/
push.sh
File metadata and controls
executable file
·31 lines (26 loc) · 861 Bytes
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
#!/usr/bin/env bash
source ./support.sh
source ./versions.sh
for version in "${versions[@]}"; do
printf "${GREEN}Pushing Docker base image for Meteor ${version}...${NC}\n"
if ! docker push geoffreybooth/meteor-base:"${version}"; then
printf "${RED}Error pushing Docker base image for Meteor ${version}${NC}\n"
exit 1
fi
if [[ $version == $latest_version ]]; then
if ! docker push geoffreybooth/meteor-base:latest; then
printf "${RED}Error pushing Docker base image for Meteor (latest version)${NC}\n"
exit 1
fi
fi
done
if [[ "${#versions[@]}" -eq 1 ]]; then
printf "${GREEN}Success pushing Docker base image for Meteor ${versions}"
if [[ "${versions[0]}" == $latest_version ]]; then
printf " (latest version)\n"
else
printf "\n"
fi
else
printf "${GREEN}Success pushing Docker base images for all supported Meteor versions\n"
fi