Skip to content

Commit

Permalink
chore: remove '-dev' from installer and operator image url (#136)
Browse files Browse the repository at this point in the history
The URL for the released image version 0.0.5 now will be:
cloud-sql-connectors/cloud-sql-operator/cloud-sql-proxy-operator:0.0.5

And the installer URL will now be:
https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy-operator/v0.0.5/install.sh
  • Loading branch information
hessjcg authored Dec 12, 2022
1 parent a475dd9 commit 154ba08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Global settings

## RELEASE_TAG is the public image tag for the operator
RELEASE_TAG_PATH=cloud-sql-connectors/cloud-sql-operator-dev/cloud-sql-proxy-operator:$(VERSION)
RELEASE_TAG_PATH=cloud-sql-connectors/cloud-sql-operator/cloud-sql-proxy-operator:$(VERSION)
RELEASE_TAG=gcr.io/$(RELEASE_TAG_PATH)

# When the environment variable IS_RELEASE_BUILD is set, the IMG will be set
Expand Down
2 changes: 1 addition & 1 deletion installer/cloud-sql-proxy-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ spec:
- --leader-elect
command:
- /manager
image: gcr.io/cloud-sql-connectors/cloud-sql-operator-dev/cloud-sql-proxy-operator:0.0.4-dev
image: gcr.io/cloud-sql-connectors/cloud-sql-operator/cloud-sql-proxy-operator:0.0.4-dev
livenessProbe:
httpGet:
path: /healthz
Expand Down
11 changes: 8 additions & 3 deletions tools/publish-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

RELEASE_PROJECT_ID="cloud-sql-connectors"
BUCKET_PATH="gs://cloud-sql-connectors/cloud-sql-proxy-operator-dev"

set -euxo
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_DIR=$( dirname "$SCRIPT_DIR")

cd "$PROJECT_DIR"


RELEASE_PROJECT_ID="cloud-sql-connectors"
if [[ -n "${IS_RELEASE_BUILD:-}" ]] ; then
BUCKET_PATH="gs://cloud-sql-connectors/cloud-sql-proxy-operator"
else
BUCKET_PATH="gs://cloud-sql-connectors/cloud-sql-proxy-operator-dev"
fi

##
# Release Process
if [[ -n ${RELEASE_TEST_BUILD_ID:-} ]] ; then
Expand Down

0 comments on commit 154ba08

Please sign in to comment.