forked from ethereum/go-ethereum
-
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.
Tag docker images with testnet name (ethereum#12)
- Loading branch information
Showing
1 changed file
with
14 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/bin/bash | ||
PROJECT_NAME=$1 | ||
PROJECT_ID=false | ||
TESTNET_NAME=false | ||
|
||
while getopts 'p:t:' flag; do | ||
case "${flag}" in | ||
p) PROJECT_ID="${OPTARG}" ;; | ||
t) TESTNET_NAME="${OPTARG}" ;; | ||
*) error "Unexpected option ${flag}" ;; | ||
esac | ||
done | ||
|
||
docker build . -t testnet-geth | ||
docker build . -f Dockerfile.kubeboot -t testnet-boot | ||
docker tag testnet-geth:latest gcr.io/$PROJECT_NAME/testnet-geth | ||
docker tag testnet-boot:latest gcr.io/$PROJECT_NAME/testnet-boot | ||
docker push gcr.io/$PROJECT_NAME/testnet-geth | ||
docker push gcr.io/$PROJECT_NAME/testnet-boot | ||
docker tag testnet-geth:latest gcr.io/$PROJECT_ID/testnet-geth:$TESTNET_NAME | ||
docker tag testnet-boot:latest gcr.io/$PROJECT_ID/testnet-boot:$TESTNET_NAME | ||
docker push gcr.io/$PROJECT_ID/testnet-geth:$TESTNET_NAME | ||
docker push gcr.io/$PROJECT_ID/testnet-boot:$TESTNET_NAME | ||
|
||
|