Skip to content

Commit

Permalink
Tag docker images with testnet name (ethereum#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
asaj authored Aug 15, 2018
1 parent 015e22c commit 8bcd4bf
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions dockerize_testnet.sh
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


0 comments on commit 8bcd4bf

Please sign in to comment.