-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to set tag in docker release script
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 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
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,8 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
##################### | ||
# Release to Docker # | ||
##################### | ||
# | ||
# Builds the image and pushes it to Docker Hub. | ||
# | ||
# Args: tag name, defaults to "latest" | ||
# | ||
|
||
set -e | ||
|
||
if [[ -z "$1" ]]; then | ||
tag=latest | ||
else | ||
tag=$1 | ||
fi | ||
|
||
docker login | ||
|
||
docker build -f docker/app/Dockerfile -t jaywink/socialhome . | ||
docker push jaywink/socialhome:latest | ||
docker build -f docker/app/Dockerfile -t jaywink/socialhome:${tag} . | ||
docker push jaywink/socialhome:${tag} |