-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update commands to know when to tag and push latest, even if that's t…
…he only version being build or pushed
- Loading branch information
1 parent
dc0345c
commit 6164bcf
Showing
5 changed files
with
46 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
#!/usr/bin/env bash | ||
source ./support.sh | ||
|
||
|
||
source ./versions.sh | ||
|
||
for version in "${meteor_versions[@]}"; do | ||
|
||
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 ! docker push geoffreybooth/meteor-base:latest; then | ||
printf "${RED}Error pushing Docker base image for Meteor (latest version)${NC}\n" | ||
exit 1 | ||
|
||
|
||
if [[ "${#versions[@]}" -eq 1 ]]; then | ||
printf "${GREEN}Success pushing Docker base image for Meteor ${versions}\n" | ||
else | ||
printf "${GREEN}Success pushing Docker base images for all supported Meteor versions\n" | ||
fi | ||
printf "${GREEN}Success pushing Docker base images for all supported Meteor versions\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters