samples/twitter-sentiment-processor/demos/demo2/provider/publish.ps1

22 lines
506 B
PowerShell

# Be sure and log into your docker hub account
[CmdletBinding()]
param (
[Parameter(
Position = 0,
HelpMessage = "The name of the docker up user to push images to."
)]
[string]
$dockerHubUser = 'darquewarrior',
[Parameter(
Position = 1,
HelpMessage = "The version of the dapr runtime version to use as image tag."
)]
[string]
$daprVersion = "1.0.0"
)
docker build -t $dockerHubUser/provider:$daprVersion .
docker push $dockerHubUser/provider:$daprVersion