Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GROUP-105 Add AWS RDS certificate file to container #38

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/commit-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
chmod +x gradlew
./gradlew bootBuildImage \
--imageName ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
- name: Add Amazon RDS Root Certificate (us-east-1)
run: docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} .
- name: OCI image vulnerability scanning
uses: anchore/scan-action@v3
id: scan
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/grouphq/group-service

ARG cert=https://truststore.pki.rds.amazonaws.com/us-east-1/us-east-1-bundle.pem

ADD $cert /home/cnb/.postgresql/root.crt
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ repositories {

bootBuildImage {
imageName = "${project.name}"
bindings = [
"${projectDir}/.postgresql:/home/cnb/.postgresql:ro".toString()
]
environment = ["BP_JVM_VERSION" : "17.*"]
}

Expand Down
Loading