update makefiles to use cloud build and update README

This commit is contained in:
patc
2019-01-28 22:44:44 -08:00
parent 7f873f23b9
commit 64918cc2b4
3 changed files with 98 additions and 102 deletions

View File

@@ -12,20 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
.PHONY: binary build push
.PHONY: build
PREFIX = staging-k8s.gcr.io
PREFIX = gcr.io/fluentd-elasticsearch
IMAGE = elasticsearch
TAG = v6.3.0
build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
push:
docker push $(PREFIX)/$(IMAGE):$(TAG)
binary:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-w" elasticsearch_logging_discovery.go
clean:
rm elasticsearch_logging_discovery
gcloud builds submit --tag ${PREFIX}/${IMAGE}:${TAG}