hack: polish scripts (#133)

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2019-01-29 14:05:37 -08:00 committed by GitHub
parent 1d452f449a
commit 3da0ae3b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 56 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@ -15,7 +17,6 @@
# Creates a new release by 1) building/pushing images, 2) injecting tag into YAML,
# 3) creating a new git tag, and 4) pushing tags/updated YAML to $BRANCH.
#!/usr/bin/env bash
set -euo pipefail
log() { echo "$1" >&2; }
@ -24,13 +25,13 @@ fail() { log "$1"; exit 1; }
TAG="${TAG?TAG env variable must be specified}"
REPO_PREFIX="${REPO_PREFIX?REPO_PREFIX env variable must be specified}"
# build and push images
# build and push images
./hack/make-docker-images.sh
# update yaml
./hack/make-release-artifacts.sh
# update yaml
./hack/make-release-artifacts.sh
# create git release / push to master
# create git release / push to master
log "Pushing k8s manifests to master..."
git tag "$TAG"
git add release/