Robert 9 сар өмнө
parent
commit
c02d2c4c3e

+ 6 - 0
Dev_Build_podman.bat

@@ -0,0 +1,6 @@
+for /f %%i in ('git rev-parse --short HEAD') do set ssha=%%i
+podman build ./ -t evdevcontainerregistry.azurecr.io/server:test --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%
+podman push evdevcontainerregistry.azurecr.io/server:test

+ 10 - 0
Prod_Build_podman.bat

@@ -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%