Skip to content

Commit 94e798c

Browse files
committed
환경 변수 전달을 위해 도커파일 수정
1 parent 878242b commit 94e798c

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
push:
66
branches:
77
- main
8-
- develop
8+
- dev
99

1010
jobs:
1111
# 개발 환경
1212
build-and-push-dev:
1313
runs-on: ubuntu-latest
14-
if: github.ref == 'refs/heads/main'
14+
if: github.ref == 'refs/heads/dev'
1515
environment: development
1616
steps:
1717
-
@@ -61,7 +61,7 @@ jobs:
6161
# 운영 환경
6262
build-and-push-prod:
6363
runs-on: ubuntu-latest
64-
if: github.ref == 'refs/heads/develop'
64+
if: github.ref == 'refs/heads/main'
6565
environment: production
6666
steps:
6767
-

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y \
1212
&& rm -rf /var/lib/apt/lists/*
1313

1414
# 환경별 변수
15+
ENV POSTGRESQL_POSTGRES_PASSWORD
16+
ENV POSTGRES_DB
17+
ENV POSTGRES_PASSWORD
18+
ENV POSTGRES_USER
19+
ENV TZ
20+
1521
ARG PROFILE=local
1622

1723
# 설정 파일 복사

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# PostgreSQL 인프라 관리 프로젝트
1+
# PostgreSQL 인프라 관리 프로젝트
2+
# Github Acions 추가

0 commit comments

Comments
 (0)