| 1 |
#!/bin/sh |
| 2 |
[ -z "$TAG" ] && echo "Must set \$TAG to a value (e.g. '3.8')" && exit 1 |
| 3 |
|
| 4 |
az acr login --subscription "Azure SDK Engineering System" --name azuresdkimages || exit 1 |
| 5 |
az acr build --subscription "Azure SDK Engineering System" -r azuresdkimages -t azuresdkimages.azurecr.io/manylinux_crypto_x64:$TAG . |
| 6 |
docker pull azuresdkimages.azurecr.io/manylinux_crypto_x64:$TAG |
| 7 |
docker tag azuresdkimages.azurecr.io/manylinux_crypto_x64:$TAG azuresdkimages.azurecr.io/manylinux_crypto_x64:latest |
| 8 |
docker push azuresdkimages.azurecr.io/manylinux_crypto_x64:latest |