This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d3612a
commit 544b6d0
Showing
19 changed files
with
146 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
ECR_CLUSTER: ${{ secrets.ECR_CLUSTER }} | ||
ECR_SERVICE: ${{ secrets.ECR_SERVICE }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v2 | ||
|
||
- name: Build, tag, and push image to Amazon ECR | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} | ||
IMAGE_TAG: ${{ github.sha }} | ||
run: | | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
- name: Update image in AWS | ||
run: | | ||
aws apprunner create-service --service-name benatty-shop-web-client --source-configuration '{"ImageRepository": {"ImageIdentifier": "'"$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"'", "ImageRepositoryType": "ECR"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
2024-06-25 22:14:07.155 [main] DEBUG ktor.application - Java Home: /Users/adrianwitaszak/.sdkman/candidates/java | ||
2024-06-25 22:14:07.156 [main] DEBUG ktor.application - Class Loader: jdk.internal.loader.ClassLoaders$AppClassLoader@1cf4f579: [file:/Users/adrianwitaszak/CharLEEX/BeNatty/kotlin/BeNatty-Client/apps/shop/web/.kobweb/server/server.jar!/ch] | ||
2024-06-25 22:14:07.167 [main] INFO ktor.application - No API jar file specified in conf.yaml. Server API routes will not be available. | ||
2024-06-25 22:14:07.197 [main] INFO ktor.application - Application started in 0.076 seconds. | ||
2024-06-25 22:14:07.274 [main] INFO ktor.application - Responding at http://0.0.0.0:8080 | ||
2024-06-25 22:44:20.166 [kotlinx.coroutines.DefaultExecutor] INFO ktor.application - Kobweb server shutting down... | ||
2024-06-25 22:44:22.248 [kotlinx.coroutines.DefaultExecutor] INFO ktor.application - Server finished shutting down. | ||
2024-06-30 12:51:04.035 [main] DEBUG ktor.application - Java Home: /Users/adrianwitaszak/.sdkman/candidates/java | ||
2024-06-30 12:51:04.036 [main] DEBUG ktor.application - Class Loader: jdk.internal.loader.ClassLoaders$AppClassLoader@1cf4f579: [file:/Users/adrianwitaszak/CharLEEX/BeNatty/kotlin/BeNatty-Client/apps/shop/web/.kobweb/server/server.jar!/ch] | ||
2024-06-30 12:51:04.046 [main] INFO ktor.application - No API jar file specified in conf.yaml. Server API routes will not be available. | ||
2024-06-30 12:51:04.076 [main] INFO ktor.application - Application started in 0.075 seconds. | ||
2024-06-30 12:51:04.158 [main] INFO ktor.application - Responding at http://0.0.0.0:8080 | ||
2024-06-30 12:51:22.281 [eventLoopGroupProxy-4-1] DEBUG ktor.application - Served fallback index.html file in response to "/" | ||
2024-06-30 12:51:23.489 [eventLoopGroupProxy-4-1] DEBUG ktor.application - Client connected and is requesting kobweb status events. | ||
2024-06-30 12:53:10.508 [eventLoopGroupProxy-4-2] DEBUG ktor.application - Served fallback index.html file in response to "/" | ||
2024-06-30 12:53:11.080 [eventLoopGroupProxy-4-1] DEBUG ktor.application - Stopped sending kobweb status events, probably because client disconnected or server is shutting down. (ChannelWriteException: Cannot write to a channel) | ||
2024-06-30 12:53:12.311 [eventLoopGroupProxy-4-2] DEBUG ktor.application - Client connected and is requesting kobweb status events. | ||
2024-06-30 12:53:19.500 [eventLoopGroupProxy-4-3] DEBUG ktor.application - Served fallback index.html file in response to "/" | ||
2024-06-30 12:53:19.906 [eventLoopGroupProxy-4-2] DEBUG ktor.application - Stopped sending kobweb status events, probably because client disconnected or server is shutting down. (ChannelWriteException: Cannot write to a channel) | ||
2024-06-30 12:53:21.113 [eventLoopGroupProxy-4-3] DEBUG ktor.application - Client connected and is requesting kobweb status events. | ||
2024-06-30 12:53:32.050 [eventLoopGroupProxy-4-4] DEBUG ktor.application - Served fallback index.html file in response to "/" | ||
2024-06-30 12:53:33.124 [eventLoopGroupProxy-4-4] DEBUG ktor.application - Client connected and is requesting kobweb status events. | ||
2024-06-30 12:53:39.672 [eventLoopGroupProxy-4-3] DEBUG ktor.application - Stopped sending kobweb status events, probably because client disconnected or server is shutting down. (ChannelWriteException: Cannot write to a channel) | ||
2024-06-30 12:54:26.951 [kotlinx.coroutines.DefaultExecutor] INFO ktor.application - Kobweb server shutting down... | ||
2024-06-30 12:54:29.041 [kotlinx.coroutines.DefaultExecutor] INFO ktor.application - Server finished shutting down. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.