-
Notifications
You must be signed in to change notification settings - Fork 86
/
deploy-image.sh
28 lines (25 loc) · 1.21 KB
/
deploy-image.sh
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
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
REGISTRY_URL=registry.cn-hangzhou.aliyuncs.com
REPOSITORY_NAME=nepxion/thunder
USER_NAME=nepxion
IMAGE_NAME=thunder-service
IMAGE_VERSION=latest
# Please input password of username=${USER_NAME} for ${REGISTRY_URL}:
docker login --username=${USER_NAME} ${REGISTRY_URL}
docker rmi ${REGISTRY_URL}/${REPOSITORY_NAME}:${IMAGE_VERSION}
docker tag ${IMAGE_NAME}:${IMAGE_VERSION} ${REGISTRY_URL}/${REPOSITORY_NAME}:${IMAGE_VERSION}
docker push ${REGISTRY_URL}/${REPOSITORY_NAME}:${IMAGE_VERSION}