|
@@ -0,0 +1,10 @@
|
|
|
+for /f %%i in ('git rev-parse --short HEAD') do set ssha=%%i
|
|
|
+FOR /f %%i IN ( version.txt ) DO set version=%%i
|
|
|
+git push
|
|
|
+git tag -a %version%
|
|
|
+git push --follow-tags
|
|
|
+docker build ./ -t evdevcontainerregistry.azurecr.io/server:%version% --label "git-commit=%ssha%"
|
|
|
+
|
|
|
+FOR /f %%i IN ('az acr login --name evdevcontainerregistry --expose-token --output tsv --query accessToken') do (SET token=%%i)
|
|
|
+podman login evdevcontainerregistry.azurecr.io -u "00000000-0000-0000-0000-000000000000" -p %token%
|
|
|
+docker push evdevcontainerregistry.azurecr.io/server:%version%
|