fix: update github cicd

This commit is contained in:
2025-01-17 23:49:40 +01:00
parent fe19fce6cc
commit d0f69bc9e4
2 changed files with 3 additions and 13 deletions

View File

@@ -34,9 +34,7 @@ jobs:
IMAGE_TAG: ${{ github.sha }} IMAGE_TAG: ${{ github.sha }}
run: | run: |
docker build \ docker build \
--build-arg DB_HOST=${{ secrets.DB_HOST }} \ --build-arg DB_URL=${{ secrets.DB_URL }} \
--build-arg DB_USER=${{ secrets.DB_USER }} \
--build-arg DB_PASSWORD="${{ secrets.DB_PASSWORD }}" \
-t $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG \ -t $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG \
packages/web packages/web
docker push $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG docker push $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG

View File

@@ -17,22 +17,14 @@
{ {
"name": "ORIGIN", "name": "ORIGIN",
"value": "https://stanrunge.dev" "value": "https://stanrunge.dev"
},
{
"name": "DB_HOST",
"value": "vash-db.c0n0e8svjact.eu-west-1.rds.amazonaws.com"
} }
], ],
"mountPoints": [], "mountPoints": [],
"volumesFrom": [], "volumesFrom": [],
"secrets": [ "secrets": [
{ {
"name": "DB_USER", "name": "DB_URL",
"valueFrom": "arn:aws:secretsmanager:eu-west-1:949678216675:secret:rds!cluster-37ddb1be-692f-449c-8384-9c6e31012245-024tQs:username::" "valueFrom": "arn:aws:secretsmanager:eu-west-1:949678216675:secret:DB_URL-NmGgN8:DB_URL::"
},
{
"name": "DB_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:eu-west-1:949678216675:secret:rds!cluster-37ddb1be-692f-449c-8384-9c6e31012245-024tQs:password::"
} }
], ],
"logConfiguration": { "logConfiguration": {