Skip to content

Commit c53dd4b

Browse files
authored
Merge pull request #37 from ASFHyP3/hotfix-release-pipeline
Hotfix: v0.1.1 - Un-complicate build-and-deploy workflow
2 parents e678db0 + a123436 commit c53dd4b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ on:
77
push:
88
branches:
99
- develop
10-
workflow_run:
11-
workflows:
12-
- "Tag New Version"
13-
branches:
14-
- main
15-
types:
16-
- completed
10+
tags:
11+
- 'v*'
1712

1813
jobs:
1914
version-info:
@@ -115,7 +110,7 @@ jobs:
115110
deploy:
116111
if: ${{ github.event_name != 'pull_request' }}
117112
concurrency:
118-
group: deploy-${{ github.ref == 'refs/heads/main' && 'prod' || 'test' }}
113+
group: deploy-${{ startsWith(github.ref, 'refs/tags/v') && 'prod' || 'test' }}
119114
runs-on: ubuntu-latest
120115
needs:
121116
- dockerize
@@ -136,7 +131,7 @@ jobs:
136131
run: |
137132
aws cloudformation deploy \
138133
--template-file cloudformation.yml \
139-
--stack-name=cmr-notifier-${{ github.ref == 'refs/heads/main' && 'prod' || 'test' }} \
134+
--stack-name=cmr-notifier-${{ startsWith(github.ref, 'refs/tags/v') && 'prod' || 'test' }} \
140135
--capabilities CAPABILITY_IAM \
141136
--parameter-overrides \
142137
EcrImageUri=${{ needs.dockerize.outputs.image_uri }} \

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
77
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [0.1.1]
10+
11+
### Fixed
12+
- `build-and-deploy.yml` GitHub Action workflow now runs on a new tag event instead of on pushes to main after the New Tag Version workflow is finished.
13+
914
## [0.1.0]
1015

1116
### Added

0 commit comments

Comments
 (0)