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

Commit

Permalink
update publish-manager to be more non gcp friendly
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Amarnath <ashish.amarnath@gmail.com>
  • Loading branch information
ashish-amarnath committed Jun 28, 2019
1 parent aedae29 commit 494fed3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/publish-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

readonly GCP_PROJECT=$(gcloud config get-value project)

set -o errexit
set -o xtrace

REGISTRY=$(gcloud config get-value project)
TAG=${TAG:-latest}
readonly IMAGE_NAME="capd-manager"

readonly GCR_REGISTRY="gcr.io/${GCP_PROJECT}"
readonly TAG=${TAG:-dev}

readonly REGISTRY=${REGISTRY:-$GCR_REGISTRY}

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

docker build --file Dockerfile -t "${IMAGE}" .
gcloud docker -- push "${IMAGE}"
docker push "${IMAGE}"

0 comments on commit 494fed3

Please sign in to comment.