diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 00edb19..9f4cf38 100755 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -35,6 +35,7 @@ jobs: run: | docker build \ --build-arg DB_URL=${{ secrets.DB_URL }} \ + --build-arg AUTH_TOKEN=${{ secrets.AUTH_TOKEN }} \ -t $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG \ packages/web docker push $ECR_REGISTRY/stan/personal-website:$IMAGE_TAG diff --git a/.github/workflows/taskdef.json b/.github/workflows/taskdef.json index 19ff95d..f71e1ba 100755 --- a/.github/workflows/taskdef.json +++ b/.github/workflows/taskdef.json @@ -25,6 +25,10 @@ { "name": "DB_URL", "valueFrom": "arn:aws:secretsmanager:eu-west-1:949678216675:secret:DB_URL-NmGgN8:DB_URL::" + }, + { + "name": "AUTH_TOKEN", + "valueFrom": "arn:aws:secretsmanager:eu-west-1:949678216675:secret:personal-website/auth-token-odxL2n:PERSONAL_TOKEN::" } ], "logConfiguration": { @@ -47,4 +51,4 @@ ], "cpu": "256", "memory": "512" -} +} \ No newline at end of file diff --git a/packages/web/Dockerfile b/packages/web/Dockerfile index 3d78021..c43deea 100755 --- a/packages/web/Dockerfile +++ b/packages/web/Dockerfile @@ -7,6 +7,7 @@ RUN bun install COPY . . ARG DB_URL +ARG AUTH_TOKEN RUN bun run build