Releases: octue/get-deployment-info
Releases · octue/get-deployment-info
Make branch deployment revision tag 16 characters
Contents (#22)
Fixes
- Make branch deployment revision tag 16 characters to avoid ending in a hyphen on pull request runs (an invalid ending for Cloud Run deployment tags)
Update entrypoint.sh
Fix typo in `GCP_ENVIRONMENT_KEBAB`
Remove GCP environment input
Contents (#16)
IMPORTANT: There is 1 breaking change.
New features
- 💥 BREAKING CHANGE: Deduce GCP environment from branch name. It will be
production
formain
branch andstaging
for other branches
Upgrade instructions
💥 Deduce GCP environment from branch name
Stop using the gcp_environment
input and use the gcp_environment_kebab
and/or gcp_environment_screaming
outputs.
Fix branch tag truncation
Contents (#15)
Fixes
- Fix branch tag truncation for non-bash shells
- Remove extra
pull-
prefix from revision tags for non-main branches
Dependencies
- Update lock file
Testing
- Build docker image for each test run to ensure the tested code is up to date
Use truncated branch or pull request name for revision tag for non-main deployments
Contents (#14)
Fixes
- Use truncated branch or pull request name for revision tag on non-
main
branches
Other
- Update readme with non-main branch deployment info
Shorten revision tag for pull requests
Contents (#13)
Fixes
- Shorten revision tag to "pull-<pull request number>" for pull request runs
Operations
- Run test workflow on pull request only
Facilitate branch deployments
Summary
This pull request does two main things:
- It distinguishes between the version specified in the
setup.py
orpyproject.toml
file and the revision tag:
- The
version_slug
output is now the slugified form ofversion
instead of the slugified form of the revision tag - The old form of
version_slug
is nowrevision_tag_slug
- A non-slugified
revision_tag
output is now available
- The
revision_tag
of a non-main branch is nowbranch-<branch-name>
instead ofunreleased
. This facilitates having multiple deployed branches.
Contents (#10)
IMPORTANT: There is 1 breaking change.
Enhancements
- 💥 BREAKING CHANGE: Distinguish between version and revision tag
- Set revision tag to
branch-<branch-name>
if branch is notmain
Operations
- Update pre-commit config
Testing
- Temporarily disable short sha check
Upgrade instructions
💥 Distinguish between version and revision tag
Use revision_tag_slug
instead of version_slug
to get the same value
Rename "artefact" to "artifact" to align with common spelling
Print outputs to `stdout` as part of action
Contents (#4)
Enhancements
- Echo outputs to
stdout
as part of action
Documentation
- Update action input/output descriptions
- Add branding to action