Skip to content
Snippets Groups Projects
Select Git revision
  • 1860ec90b4f8fb9256daa18cb778ca64b7e6f307
  • develop default protected
  • master
3 results

env.sh

Blame
  • Emmanuel Bruno's avatar
    Emmanuel Bruno authored
    1860ec90
    History
    env.sh 270 B
    #!/bin/bash
    REGISTRY=brunoe
    IMAGE_NAME=${PWD##*/}
    
    CURRENT=`pwd`
    DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
    cd $DIR
    BASE=${REGISTRY}/${IMAGE_NAME}
    BRANCH=`git rev-parse --abbrev-ref HEAD|tr '/' '_' `
    SHA=`git log -1 --pretty=%h`
    cd $CURRENT