-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a034bb
commit 7c6cec7
Showing
2 changed files
with
25 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [ -z "${1:-}" ]; then | ||
echo "version not set" | ||
exit 1 | ||
fi | ||
|
||
version=$1 | ||
image_name="gcr.io/get-release-xyz/get-release-server" | ||
image_name_version="$image_name:$version" | ||
|
||
echo "building image..." | ||
docker build -t $image_name_version . | ||
|
||
echo "pushing image..." | ||
docker tag $image_name_version $image_name | ||
docker push $image_name_version | ||
docker push $image_name |