Skip to content

Commit 8d0bea7

Browse files
authored
ci: Remove Cloud Build release scripts. (#546)
1 parent 3103a67 commit 8d0bea7

4 files changed

Lines changed: 8 additions & 131 deletions

File tree

.build/release.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

Makefile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,20 @@
1515
###
1616
# Global settings
1717

18-
## RELEASE_TAG is the public image tag for the operator
19-
RELEASE_TAG_PATH=cloud-sql-connectors/cloud-sql-operator/cloud-sql-proxy-operator:$(VERSION)
20-
RELEASE_TAG=gcr.io/$(RELEASE_TAG_PATH)
21-
22-
# When the environment variable IS_RELEASE_BUILD is set, the IMG will be set
23-
# to the RELEASE_TAG, overriding the IMG environment variable. This is intended
24-
# to be used only in a release job to publish artifacts.
25-
ifdef IS_RELEASE_BUILD
26-
IMG=$(RELEASE_TAG)
18+
# INSTALLER_IMG in inserted into the installer script as the operator image.
19+
# If $IMG is set, it INSTALLER_IMG defaults to $IMG. If $IMG, then INSTALLER_IMG
20+
# is assigned a placeholder.
21+
ifdef IMG
22+
INSTALLER_IMG=$(IMG)
2723
endif
28-
24+
INSTALLER_IMG ?= cloud-sql-proxy-operator:latest
2925

3026
# IMG is used by build to determine where to push the docker image for the
3127
# operator. You must set the IMG environment variable when you run make build
3228
# or other dependent targets.
3329
IMG ?=
3430

31+
3532
# Import the local build environment file. This holds configuration specific
3633
# to the local environment. build.sample.env describes the required configuration
3734
# environment variables.
@@ -233,7 +230,7 @@ installer: installer/cloud-sql-proxy-operator.yaml installer/install.sh
233230

234231
.PHONY: installer/cloud-sql-proxy-operator.yaml
235232
installer/cloud-sql-proxy-operator.yaml: kustomize # Build the single yaml file for deploying the operator
236-
cd config/manager && $(KUSTOMIZE) edit set image controller=$(RELEASE_TAG)
233+
cd config/manager && $(KUSTOMIZE) edit set image controller=$(INSTALLER_IMG)
237234
mkdir -p installer
238235
$(KUSTOMIZE) build config/default > $@
239236
cd config/manager && $(KUSTOMIZE) edit set image controller=$(SOURCE_CODE_IMAGE)

tools/generate-artifacts.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

tools/publish-installer.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)