Last active
October 7, 2020 17:08
-
-
Save onepointconsulting/91b31cc10ff8d1b1e95be1abafd1d9fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set TARGET_FOLDER=.\build | |
set ARCH=os.linux.x86_64 | |
set NODE_OPTIONS=--max_old_space_size=6144 | |
rmdir /s /q %TARGET_FOLDER% | |
call %USERPROFILE%\AppData\Local\.meteor\meteor.bat build --verbose --directory %TARGET_FOLDER% --architecture %ARCH% | |
cd %TARGET_FOLDER%\bundle\programs\server | |
call npm install | |
cd ..\..\..\.. | |
set BRANCH=tutorial | |
set VERSION=0.3 | |
set IMAGE_NAME_VERSION=clf4tutorial.azurecr.io/tutorial_%BRANCH%:%VERSION% | |
set IMAGE_NAME_LATEST=clf4tutorial.azurecr.io/tutorial_%BRANCH%:latest | |
call docker build -t %IMAGE_NAME_VERSION% . | |
set AZURE_CR_USERNAME=<user> | |
set AZURE_CR_PASSWORD=<password> | |
call docker login clf4tutorial.azurecr.io --username %AZURE_CR_USERNAME% --password %AZURE_CR_PASSWORD% | |
call docker push %IMAGE_NAME_VERSION% | |
call docker tag %IMAGE_NAME_VERSION% %IMAGE_NAME_LATEST% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment