-
Notifications
You must be signed in to change notification settings - Fork 86
/
deploy-image.bat
30 lines (26 loc) · 1.24 KB
/
deploy-image.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo on
@echo =============================================================
@echo $ $
@echo $ Nepxion Thunder $
@echo $ $
@echo $ $
@echo $ $
@echo $ Nepxion Studio All Right Reserved $
@echo $ Copyright (C) 2017-2050 $
@echo $ $
@echo =============================================================
@echo.
@echo off
@title Nepxion Thunder
@color 0a
@set REGISTRY_URL=registry.cn-hangzhou.aliyuncs.com
@set REPOSITORY_NAME=nepxion/thunder
@set USER_NAME=nepxion
@set IMAGE_NAME=thunder-service
@set IMAGE_VERSION=latest
@echo Please input password of username=%USER_NAME% for %REGISTRY_URL%:
call docker login --username=%USER_NAME% %REGISTRY_URL%
call docker rmi %REGISTRY_URL%/%REPOSITORY_NAME%:%IMAGE_VERSION%
call docker tag %IMAGE_NAME%:%IMAGE_VERSION% %REGISTRY_URL%/%REPOSITORY_NAME%:%IMAGE_VERSION%
call docker push %REGISTRY_URL%/%REPOSITORY_NAME%:%IMAGE_VERSION%
pause