Use bazel rules to build docker image and push to GCR

Using bazel to build and push image result in reproducible builds.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187252645
This commit is contained in:
jianglai 2018-02-27 16:39:16 -08:00
parent 9e3fb8b93c
commit 753a269357
6 changed files with 53 additions and 88 deletions

View file

@ -20,7 +20,7 @@ spec:
secretName: proxy-account
containers:
- name: proxy
image: INSERT_YOUR_IMAGE_NAME_HERE
image: gcr.io/GCP_PROJECT/IMAGE_NAME:bazel
ports:
- containerPort: 30000
name: health-check
@ -41,6 +41,7 @@ spec:
volumeMounts:
- name: service-account
mountPath: /var/secrets/google
imagePullPolicy: Always
args: ["--log"]
env:
- name: GOOGLE_APPLICATION_CREDENTIALS