github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/scripts/deploy.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e
     4  
     5  KEY_FILE="./gcloud-travis.json.enc"
     6  if [ $1 ]; then
     7  	KEY_FILE=$1
     8  fi
     9  
    10  OS_NAME=`echo $(uname) | tr "[:upper:]" "[:lower:]"`
    11  if [ $OS_NAME == "darwin" ]; then
    12  	OS_NAME="osx"
    13  fi
    14  
    15  GETH_ARCHIVE_NAME="geth-classic-$OS_NAME-$(janus version -format='TAG_OR_NIGHTLY')"
    16  zip "$GETH_ARCHIVE_NAME.zip" geth
    17  tar -zcf "$GETH_ARCHIVE_NAME.tar.gz" geth
    18  
    19  mkdir deploy
    20  mv *.zip *.tar.gz deploy/
    21  ls -l deploy/
    22  
    23  GPG=""
    24  if [ $CIRCLECI ]; then
    25  	GPG=-gpg
    26  fi
    27  janus deploy $GPG -to="builds.etcdevteam.com/go-ethereum/$(janus version -format='v%M.%m.x')/" -files="./deploy/*" -key="$KEY_FILE"