-
Notifications
You must be signed in to change notification settings - Fork 17
/
power.ps1
22 lines (16 loc) · 1012 Bytes
/
power.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
param($t,$u,$p)
#docker build
Write-Host "Hello $t"
docker login --username=$u registry.cn-hangzhou.aliyuncs.com --password=$p
$ServiceDockerfilePath="./src/Services/Masa.Auth.Service.Admin/Dockerfile"
$ServiceServerName="masa-auth-service-admin"
$WebDockerfilePath="./src/Web/Masa.Auth.Web.Admin.Server/Dockerfile"
$WebServerName="masa-auth-web-admin"
$SsoDockerfilePath="./src/Web/Masa.Auth.Web.Sso/Dockerfile"
$SsoServerName="masa-auth-web-sso"
docker build -t registry.cn-hangzhou.aliyuncs.com/masastack/${ServiceServerName}:$t -f $ServiceDockerfilePath .
docker push registry.cn-hangzhou.aliyuncs.com/masastack/${ServiceServerName}:$t
docker build -t registry.cn-hangzhou.aliyuncs.com/masastack/${WebServerName}:$t -f $WebDockerfilePath .
docker push registry.cn-hangzhou.aliyuncs.com/masastack/${WebServerName}:$t
docker build -t registry.cn-hangzhou.aliyuncs.com/masastack/${SsoServerName}:$t -f $SsoDockerfilePath .
docker push registry.cn-hangzhou.aliyuncs.com/masastack/${SsoServerName}:$t