Skip to content
This repository was archived by the owner on Sep 24, 2021. It is now read-only.

Commit 494fed3

Browse files
update publish-manager to be more non gcp friendly
Signed-off-by: Ashish Amarnath <[email protected]>
1 parent aedae29 commit 494fed3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/publish-manager.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
readonly GCP_PROJECT=$(gcloud config get-value project)
17+
1618
set -o errexit
1719
set -o xtrace
1820

19-
REGISTRY=$(gcloud config get-value project)
20-
TAG=${TAG:-latest}
21+
readonly IMAGE_NAME="capd-manager"
22+
23+
readonly GCR_REGISTRY="gcr.io/${GCP_PROJECT}"
24+
readonly TAG=${TAG:-dev}
25+
26+
readonly REGISTRY=${REGISTRY:-$GCR_REGISTRY}
2127

22-
IMAGE="gcr.io/${REGISTRY}/capd-manager:${TAG}"
28+
readonly IMAGE=${REGISTRY}/${IMAGE_NAME}:${TAG}
2329

2430
docker build --file Dockerfile -t "${IMAGE}" .
25-
gcloud docker -- push "${IMAGE}"
31+
docker push "${IMAGE}"

0 commit comments

Comments
 (0)