Skip to content

Commit

Permalink
move deployment job to generic-workflow repo and use here
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufaddal5253110 committed Jul 26, 2024
1 parent 2dc5fc2 commit b83a456
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 98 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI

on:
push:
branches:
- feat/gh-action
pull_request:
branches:
- main
workflow_dispatch:

jobs:
ci:
uses: infraspecdev/generic-workflows/.github/workflows/maven-ci.yml@main
with:
ecr-repository: petclinic
aws-region: ap-south-1
java-version: 17
linting: false
secrets:
assume-role: ${{ secrets.CORE_GH_ROLE }}
gh-token: ${{ secrets.GH_TOKEN }}

cd:
uses: infraspecdev/generic-workflows/.github/workflows/deploy.yml@main
needs: [ci]
with:
ecs-cluster: alpha
ecs-service: petclinic
aws-region: ap-south-1
image-tag: ${{ needs.ci.outputs.image-tag }}
secrets:
assume-role: ${{ secrets.CORE_GH_ROLE }}
97 changes: 0 additions & 97 deletions .github/workflows/ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<body>
<img src="../static/resources/images/pets.png" th:src="@{/resources/images/pets.png}"/>
<h2>Something happened...Revision 3</h2>
<h2>Something happened...Revision 4</h2>
<p th:text="${message}">Exception message</p>
</body>

Expand Down

0 comments on commit b83a456

Please sign in to comment.