Skip to content

Commit

Permalink
Chore : Docker Container에 환경변수 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
nonaninona committed Jan 29, 2024
1 parent 29359f3 commit ec0719f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
--build-arg PROD_DB_PASSWORD=${{ secrets.PROD_DB_PASSWORD }} \
--build-arg PROD_DB_USER=${{ secrets.PROD_DB_USER }} \
--build-arg ACTIVE_PROFILE=${{ secrets.ACTIVE_PROFILE }} \
--build-arg S3_BUCKET=${{ secrets.S3_BUCKET }} \
--build-arg REGION=${{ secrets.REGION }} \
--build-arg ACCESS_KEY=${{ secrets.ACCESS_KEY }} \
--build-arg SECRET_KEY=${{ secrets.SECRET_KEY }} \
-t chatdiary/chatdiary-image:latest .
docker images
docker push chatdiary/chatdiary-image:latest
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ ARG PROD_DB_USER
ENV PROD_DB_USER=${PROD_DB_USER}
ARG ACTIVE_PROFILE
ENV ACTIVE_PROFILE=${ACTIVE_PROFILE}
ARG S3_BUCKET
ENV S3_BUCKET=${S3_BUCKET}
ARG REGION
ENV REGION=${REGION}
ARG ACCESS_KEY
ENV ACCESS_KEY=${ACCESS_KEY}
ARG SECRET_KEY
ENV SECRET_KEY=${SECRET_KEY}
ENV TZ=Asia/Seoul
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/$TZ /etc/localtime && \
Expand Down

0 comments on commit ec0719f

Please sign in to comment.