Prod_Build_podman.bat 561 B

12345678910
  1. for /f %%i in ('git rev-parse --short HEAD') do set ssha=%%i
  2. FOR /f %%i IN ( version.txt ) DO set version=%%i
  3. git push
  4. git tag -a %version%
  5. git push --follow-tags
  6. podman build ./ -t evdevcontainerregistry.azurecr.io/server:%version% --label "git-commit=%ssha%"
  7. FOR /f %%i IN ('az acr login --name evdevcontainerregistry --expose-token --output tsv --query accessToken') do (SET token=%%i)
  8. podman login evdevcontainerregistry.azurecr.io -u "00000000-0000-0000-0000-000000000000" -p %token%
  9. podman push evdevcontainerregistry.azurecr.io/server:%version%