From d6eaa54d310c6fd25fb6667a1e5c3daaa90ee0e4 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Fri, 6 May 2022 14:11:07 -0700 Subject: [PATCH] Bump version to v0.15.1 for release --- .github/workflows/main.yml | 14 +++++++++++--- CHANGELOG.md | 6 ++++++ beaker/version.py | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bad5409..41987c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -191,10 +191,18 @@ jobs: - name: Publish image to container registry if: startsWith(github.ref, 'refs/tags/') + shell: bash run: | - TAG=${GITHUB_REF#refs/tags/} - docker tag "${image}" "${image}:${TAG}" - docker push "${image}:${TAG}" + TAG_MAJOR_MINOR_PATCH=${GITHUB_REF#refs/tags/} + TAG_MAJOR_MINOR=${TAG_MAJOR_MINOR_PATCH%.*} + TAG_MAJOR=${TAG_MAJOR_MINOR_PATCH%.*.*} + + for TAG in $TAG_MAJOR_MINOR_PATCH $TAG_MAJOR_MINOR $TAG_MAJOR + do + echo "Pushing ${image}:${TAG}" + docker tag "${image}" "${image}:${TAG}" + docker push "${image}:${TAG}" + done release: name: Release diff --git a/CHANGELOG.md b/CHANGELOG.md index e3a8922..a52006d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [v0.15.1](https://github.com/allenai/beaker-py/releases/tag/v0.15.1) - 2022-05-06 + +### Added + +- Docker images released with major and major+minor version tags in addition to full version tag. + ## [v0.15.0](https://github.com/allenai/beaker-py/releases/tag/v0.15.0) - 2022-05-06 ### Added diff --git a/beaker/version.py b/beaker/version.py index 3b4103b..cfa0493 100644 --- a/beaker/version.py +++ b/beaker/version.py @@ -2,7 +2,7 @@ _MINOR = "15" # On main and in a nightly release the patch should be one ahead of the last # released build. -_PATCH = "0" +_PATCH = "1" # This is mainly for nightly builds which have the suffix ".dev$DATE". See # https://semver.org/#is-v123-a-semantic-version for the semantics. _SUFFIX = ""