You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 line
341 B

  1. #!/bin/bash
  2. script_dir="$( dirname "${0}" )"
  3. IMAGE_LATEST_TAG="latest"
  4. IMAGE_VERSION_TAG=`git tag -l --sort=-creatordate | head -n 1 | sed "s/v//g"`
  5. sudo docker build \
  6. --no-cache \
  7. -t getpinry/pinry:${IMAGE_VERSION_TAG} \
  8. -t getpinry/pinry:${IMAGE_LATEST_TAG} \
  9. "${script_dir}/../" \
  10. -f "${script_dir}/../Dockerfile.autobuild"