Skip to content

Commit

Permalink
Chore: 환경변수 적용방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed Jun 1, 2024
1 parent 4afe979 commit f47bcdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ jobs:
java-version: '11'
distribution: "adopt"

- name: create firebase key
- name: create env file
run: |
cd ./src/main/resources
ls -a .
touch ./firebase-service-key.json
echo "${{ secrets.FIREBASE_KEY }}" > ./firebase-service-key.json
touch ./.env
echo "${{ secrets.ENV_FILE }}" > ./.env
shell: bash

- name: Build with Gradle
Expand All @@ -53,4 +51,4 @@ jobs:
sudo docker rm ticats
sudo docker image rm gabang2/ticats:latest
sudo docker pull gabang2/ticats:latest
sudo docker run -d -p 8080:8080 --name ticats ${{ secrets.ENVS }} gabang2/ticats:latest
sudo docker run -d -p 8080:8080 --name ticats --env-file=.env gabang2/ticats:latest
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

# firebase-service-key.json 파일을 컨테이너로 복사
COPY src/main/resources/firebase-service-key.json /app/resources/firebase-service-key.json
COPY src/main/resources/firebase-service-key.json /app/src/main/resources/firebase-service-key.json
COPY .env .env

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "/app.jar"]
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
- TICKETS_S3_SECRET : S3 Secret key 정보
- TICKETS_SECRET : JWT Secret 키 정보
- TICKETS_CLIENT : KAKAO Client 정보(현재 비활성화)
- TICATS_SSL_PW : ssl 인증서의 pw 정보
2. Ticats 어플리케이션 백엔드 build
```bash
./gradlew bootjar
Expand Down

0 comments on commit f47bcdc

Please sign in to comment.