<commit_before># Releasing new versions

Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the 
following files:

* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`

Commit, and tag the release:

```bash
export VERSION=160.0.0
git add --all && git commit -m "Update SDK to $VERSION" && \
    git tag -a $VERSION -m "v${VERSION}" && \
    git push origin master --tags
```


## Updating a tagged version

**Caution:** Do not update version-tagged images on Docker Hub with breaking
changes. If a user is consuming `google/cloud-sdk:160.0.0-slim` image, then do
not change that image in a breaking way!

To recreate a version-tagged image in Docker Hub, delete the git tag locally
and remotely on GitHub:

```bash
git tag -d 159.0.0 && \
    git push origin :159.0.0
```

Then follow the steps in "Releasing new versions" to release the version
again.
<commit_msg>maintenance: Allow empty commits marking releases<commit_after># Releasing new versions

Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the 
following files:

* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`

Commit, and tag the release:

```bash
export VERSION=160.0.0
git add --all && git commit -m "Update SDK to $VERSION" --allow-empty && \
    git tag -a $VERSION -m "v${VERSION}" && \
    git push origin master --tags
```


## Updating a tagged version

**Caution:** Do not update version-tagged images on Docker Hub with breaking
changes. If a user is consuming `google/cloud-sdk:160.0.0-slim` image, then do
not change that image in a breaking way!

To recreate a version-tagged image in Docker Hub, delete the git tag locally
and remotely on GitHub:

```bash
git tag -d 159.0.0 && \
    git push origin :159.0.0
```

Then follow the steps in "Releasing new versions" to release the version
again.

{'fraction_non_alphanumeric': 0.10718002081165452, 'fraction_numerical': 0.026014568158168574, 'mean_word_length': 3.856060606060606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1146173', 'n_tokens_mistral': 678, 'n_tokens_neox': 607, 'n_words': 256}