Skip to content

Commit

Permalink
Merge pull request #131 from boostcampwm2023/BE-feature/authentication
Browse files Browse the repository at this point in the history
์†Œ์…œ ๋กœ๊ทธ์ธ, Access Token ๋ฐœ๊ธ‰
  • Loading branch information
tnpfldyd authored Dec 3, 2023
2 parents 2f1e1ef + a9d08ad commit 964665c
Show file tree
Hide file tree
Showing 18 changed files with 494 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/BE-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ jobs:
run: echo ${{ secrets.PACKAGE_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ secrets.PACKAGE_USERNAME }} --password-stdin
- name: Build and push Docker image
run: |
echo "SERVER_PORT=$SERVER" >> ./nestjs-BE/server/.env
echo "JWT_SECRET=$JWT_SECRET" >> ./nestjs-BE/server/.env
echo "KAKAO_ADMIN_KEY=$KAKAO_ADMIN_KEY" >> ./nestjs-BE/server/.env
docker build -t ghcr.io/${{ secrets.PACKAGE_USERNAME }}/mindsync ./nestjs-BE/server
docker push ghcr.io/${{ secrets.PACKAGE_USERNAME }}/mindsync:latest
env:
SERVER_PORT: ${{ secrets.CONTAINER_PORT }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
KAKAO_ADMIN_KEY: ${{ secrets.KAKAO_ADMIN_KEY }}

deploy:
needs: build
Expand Down
5 changes: 4 additions & 1 deletion nestjs-BE/server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ lerna-debug.log*
*.sublime-workspace

# IDE - VSCode
/.vscode
/.vscode

# Environment Variable File
.env
10 changes: 10 additions & 0 deletions nestjs-BE/server/config/env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { config } from 'dotenv';

interface CustomEnv {
[key: string]: string;
}

const customEnv: CustomEnv = {};
config({ processEnv: customEnv });

export default customEnv;
Loading

0 comments on commit 964665c

Please sign in to comment.