diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 70d9d4d..82ec184 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -110,9 +110,10 @@ jobs: deploy: if: ${{ github.event_name != 'pull_request' }} concurrency: - group: deploy-${{ startsWith(github.ref, 'refs/tags/v') && 'prod' || 'test' }} + group: deploy-${{ contains(needs.version-info.outputs.version_tag, '.dev') && 'test' || 'prod' }} runs-on: ubuntu-latest needs: + - version-info - dockerize permissions: contents: read @@ -131,7 +132,7 @@ jobs: run: | aws cloudformation deploy \ --template-file cloudformation.yml \ - --stack-name=cmr-notifier-${{ startsWith(github.ref, 'refs/tags/v') && 'prod' || 'test' }} \ + --stack-name=cmr-notifier-${{ contains(needs.version-info.outputs.version_tag, '.dev') && 'test' || 'prod' }} \ --capabilities CAPABILITY_IAM \ --parameter-overrides \ EcrImageUri=${{ needs.dockerize.outputs.image_uri }} \ diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f28fe6..339b3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.2] + +### Fixed +- `build-and-deploy.yml` GitHub Action workflow now specifies the deployment maturity from the computed version number, not the `github.ref`. + ## [0.1.1] ### Fixed