Skip to content

Commit

Permalink
📝 :: env
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdl0525 committed Oct 19, 2023
1 parent b406509 commit d5c2476
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ecr-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "main" ]

jobs:
deploy:
CI-CD:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
SENDER: ${{ secrets.SENDER }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
run: |
docker buildx build --platform=linux/amd64 -e -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker buildx build --platform=linux/amd64 --build-arg ACCESS_EXP=ACCESS_EXP --build-arg API_KEY=API_KEY --build-arg API_SECRET=$API_SECRET --build-arg BUCKET=$BUCKET --build-arg DB_PASSWORD=$DB_PASSWORD --build-arg DB_URL=$DB_URL --build-arg DB_USER=$DB_USER --build-arg DIRECTORY=$DIRECTORY --build-arg IAM_ACCESS=$IAM_ACCESS --build-arg IAM_SECRET=$IAM_SECRET --build-arg JWT_SECRET=$JWT_SECRET --build-arg REFRESH_EXP=$REFRESH_EXP --build-arg SENDER=$SENDER --build-arg REDIS_HOST=$REDIS_HOST -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
Expand Down
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ FROM openjdk:17-jdk-slim
COPY --from=builder /app.jar /app.jar

ENV TZ=Asia/Seoul
ACCESS_EXP=${ACCESS_EXP}
API_KEY=${API_KEY}
API_SECRET=${API_SECRET}
BUCKET=${BUCKET}
DB_PASSWORD=${DB_PASSWORD}
DB_URL=${DB_URL}
DB_USER=${DB_USER}
DIRECTORY=${DIRECTORY}
IAM_ACCESS=${IAM_ACCESS}
IAM_SECRET=${IAM_SECRET}
JWT_SECRET=${JWT_SECRET}
REFRESH_EXP=${REFRESH_EXP}
SENDER=${SENDER}
REDIS_HOST=${REDIS_HOST}

EXPOSE 8080

Expand Down

0 comments on commit d5c2476

Please sign in to comment.