Skip to content

Commit

Permalink
GitTag -> AppVersion
Browse files Browse the repository at this point in the history
Tweak to release stage to stripe leadin 'v' fromGit.Tag to form semantic version
  • Loading branch information
ChrisPates committed Jan 23, 2023
1 parent bb78c62 commit 553828b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cicd/cloudformation/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Resources:
Configuration:
ProjectName: !Ref CodeBuildRelease
PrimarySource: Source
EnvironmentVariables: '[{"name":"AppVersion","value":"#{Git.Tag}","type":"PLAINTEXT"}]'
EnvironmentVariables: '[{"name":"GitTag","value":"#{Git.Tag}","type":"PLAINTEXT"}]'
OutputArtifacts:
- Name: Release
InputArtifacts:
Expand Down
2 changes: 2 additions & 0 deletions cicd/release/public/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ phases:
# Check we have the required file
- ls packaged.yaml

- export AppVersion="${GitTag#v}"

build:
commands:
# Package our application with AWS SAM
Expand Down

0 comments on commit 553828b

Please sign in to comment.