-
Notifications
You must be signed in to change notification settings - Fork 5
/
power.ps1
23 lines (17 loc) · 1.08 KB
/
power.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
param($t,$u,$p)
#docker build
#Write-Host "Hello.$args"
Write-Host "Hello $t"
docker login --username=$u registry.cn-hangzhou.aliyuncs.com --password=$p
$WorkerDockerfilePath="./src/Services/Masa.Scheduler.Services.Worker/Dockerfile"
$WorkerServerName="masa-scheduler-services-worker"
$ServiceDockerfilePath="./src/Services/Masa.Scheduler.Services.Server/Dockerfile"
$ServiceServerName="masa-scheduler-services-server"
$WebDockerfilePath="./src/Web/Masa.Scheduler.Web.Admin.Server/Dockerfile"
$WebServerName="masa-scheduler-web-admin"
docker build -t registry.cn-hangzhou.aliyuncs.com/masastack/${WorkerServerName}:$t -f $WorkerDockerfilePath .
docker push registry.cn-hangzhou.aliyuncs.com/masastack/${WorkerServerName}:$t
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