Skip to content

Commit d1c087d

Browse files
author
Laurent LE LARDEUX
committed
bump version 0.0.6
1 parent 40ffcbd commit d1c087d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ jobs:
102102
name: Deploy
103103
runs-on: ubuntu-latest
104104
needs: release-project
105+
outputs:
106+
REVISION: ${{ steps.get-revision.outputs.REVISION }}
105107

106108
steps:
107109

@@ -126,6 +128,12 @@ jobs:
126128
run: |
127129
aws s3 cp ./build.zip s3://${{ secrets.AWS_S3_BUCKET }}
128130
131+
- name: Get artefact s3 revision id
132+
id: get-revision
133+
run: |
134+
echo "REVISION=$(aws s3api list-object-versions --bucket poc-devops-backend --prefix build.zip --query 'Versions[?IsLatest].[VersionId]' --output text)" >> $GITHUB_OUTPUT
135+
136+
129137
- name: Launch AWS codedeploy deployment
130138
run : |
131-
aws deploy create-deployment --application-name poc-inetum --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name HelloWorldDeploymentGroup --s3-location bucket=poc-devops-backend,bundleType=zip,key=build.zip
139+
aws deploy create-deployment --application-name poc-inetum --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name HelloWorldDeploymentGroup --s3-location bucket=poc-devops-backend,bundleType=zip,key=build.zip,version=${{ steps.get-revision.outputs.REVISION }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>com.example</groupId>
1212
<artifactId>build</artifactId>
13-
<version>0.0.6</version>
13+
<version>0.0.7</version>
1414
<packaging>war</packaging>
1515
<name>laurent</name>
1616
<description>laurent</description>

src/main/java/com/example/laurent/HelloWorldControler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class HelloWorldControler {
88

99
@GetMapping("/")
1010
public String bonjourLaurent() {
11-
return "Hello World ! - Release 0.0.6";
11+
return "Hello World ! - Release 0.0.7";
1212
}
1313
}

0 commit comments

Comments
 (0)