examples/pipelines/azurepipeline/code/preprocess/build.sh

10 lines
215 B
Bash

#!/bin/bash
while getopts "r:" option;
do
case "$option" in
r ) REGISTRY_NAME=${OPTARG};;
esac
done
IMAGE=${REGISTRY_NAME}.azurecr.io/preprocess
docker build -t $IMAGE . && docker run -it $IMAGE