Skip to content

Commit

Permalink
bump version 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent LE LARDEUX committed Jan 6, 2023
1 parent 40ffcbd commit d1c087d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
needs: release-project
outputs:
REVISION: ${{ steps.get-revision.outputs.REVISION }}

steps:

Expand All @@ -126,6 +128,12 @@ jobs:
run: |
aws s3 cp ./build.zip s3://${{ secrets.AWS_S3_BUCKET }}
- name: Get artefact s3 revision id
id: get-revision
run: |
echo "REVISION=$(aws s3api list-object-versions --bucket poc-devops-backend --prefix build.zip --query 'Versions[?IsLatest].[VersionId]' --output text)" >> $GITHUB_OUTPUT
- name: Launch AWS codedeploy deployment
run : |
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
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 }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.example</groupId>
<artifactId>build</artifactId>
<version>0.0.6</version>
<version>0.0.7</version>
<packaging>war</packaging>
<name>laurent</name>
<description>laurent</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/example/laurent/HelloWorldControler.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class HelloWorldControler {

@GetMapping("/")
public String bonjourLaurent() {
return "Hello World ! - Release 0.0.6";
return "Hello World ! - Release 0.0.7";
}
}

0 comments on commit d1c087d

Please sign in to comment.