From ec0719f7fb75e66bd14189e7f289252f5929c3d0 Mon Sep 17 00:00:00 2001 From: nonaninona Date: Tue, 30 Jan 2024 02:39:31 +0900 Subject: [PATCH] =?UTF-8?q?Chore=20:=20Docker=20Container=EC=97=90=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=A0=84=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 4 ++++ Dockerfile | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 07cdccd6..6b049d68 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 445f704c..e2cd307c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \