forked from LoopieLLC/MarketingWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
25 lines (20 loc) · 713 Bytes
/
build.ps1
File metadata and controls
25 lines (20 loc) · 713 Bytes
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
#------------------------------------------------------------------------------
# FILE: build.ps1
# CONTRIBUTOR: Marcus Bowyer
# COPYRIGHT: Copyright (c) 2017-2018 by Loopie, LLC. All rights reserved.
#
# Builds a [loopie/couchbase] image.
#
# Usage: powershell -file build.ps1 REGISTRY VERSION TAG
param
(
[parameter(Mandatory=$True,Position=1)][string] $registry,
[parameter(Mandatory=$True,Position=2)][string] $version,
[parameter(Mandatory=$True,Position=3)][string] $tag
)
" "
"======================================="
"* MarketingSite:" + $tag
"======================================="
# Build the image.
Exec { docker build -t "${registry}:$tag" --build-arg "VERSION=$version" . }