Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1326 from njuettner/image-publishing
Browse files Browse the repository at this point in the history
Enable image publishing
  • Loading branch information
k8s-ci-robot authored Jan 7, 2020
2 parents 32573f4 + 4ebf88d commit 4c6b7c3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ test:

BINARY ?= external-dns
SOURCES = $(shell find . -name '*.go')
IMAGE ?= registry.opensource.zalan.do/teapot/$(BINARY)
IMAGE_STAGING = gcr.io/k8s-staging-external-dns/$(BINARY)
IMAGE ?= us.gcr.io/k8s-artifacts-prod/external-dns/$(BINARY)
VERSION ?= $(shell git describe --tags --always --dirty)
BUILD_FLAGS ?= -v
LDFLAGS ?= -X sigs.k8s.io/external-dns/pkg/apis/externaldns.Version=$(VERSION) -w -s
Expand All @@ -66,3 +67,12 @@ build.mini:

clean:
@rm -rf build

# Builds and push container images to the staging bucket.
.PHONY: release.staging

release.staging:
IMAGE=$(IMAGE_STAGING) $(MAKE) build.docker build.push

release.prod:
$(MAKE) build.docker build.push
14 changes: 14 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://cloud.google.com/cloud-build/docs/build-config
timeout: 1200s
steps:
- name: "gcr.io/k8s-testimages/gcb-docker-gcloud:v20190906-745fed4"
entrypoint: make
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- TAG=$_GIT_TAG
args:
- release.staging
substitutions:
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
# can be used as a substitution
_GIT_TAG: "12345"
23 changes: 0 additions & 23 deletions delivery.yaml

This file was deleted.

0 comments on commit 4c6b7c3

Please sign in to comment.