Skip to content

Commit

Permalink
Merge pull request #58 from APPS-sookmyung/dev
Browse files Browse the repository at this point in the history
[Fix] add secret key
  • Loading branch information
ajung7038 authored Aug 7, 2024
2 parents 10f1dc2 + 67b1d2c commit fcf27a6
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,40 @@ jobs:
echo "${{ secrets.YML }}" > ./application.yml
shell: bash

- name: Setting .env file - KAKAO
run: |
echo "OAUTH_KAKAO_CLIENT_ID=${{ secrets.OAUTH_KAKAO_CLIENT_ID }}" >> .env
echo "OAUTH_KAKAO_CLIENT_SECRET=${{ secrets.OAUTH_KAKAO_CLIENT_SECRET }}" >> .env
echo "OAUTH_KAKAO_REDIRECT_URI=${{ secrets.OAUTH_KAKAO_REDIRECT_URI }}" >> .env
cat .env
- name: Setting .env file - NAVER
run: |
echo "OAUTH_NAVER_CLIENT_ID=${{ secrets.OAUTH_NAVER_CLIENT_ID }}" >> .env
echo "OAUTH_NAVER_CLIENT_SECRET=${{ secrets.OAUTH_NAVER_CLIENT_SECRET }}" >> .env
echo "OAUTH_NAVER_REDIRECT_URI=${{ secrets.OAUTH_NAVER_REDIRECT_URI }}" >> .env
cat .env
- name: Setting .env file - JWT
run: |
echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env
echo "JWT_REDIRECT_URI=${{ secrets.JWT_REDIRECT_URI }}" >> .env
cat .env
- name: Setting .env file - DATABASE
run: |
echo "DATABASE_ENDPOINT=${{ secrets.DATABASE_ENDPOINT }}" >> .env
echo "DATABASE_USERNAME=${{ secrets.DATABASE_USERNAME }}" >> .env
echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> .env
cat .env
- name: Setting .env file - S3 Bucket
run: |
echo "BUCKET_NAME=${{ secrets.BUCKET_NAME }}" >> .env
echo "BUCKET_ACCESS_KEY=${{ secrets.BUCKET_ACCESS_KEY }}" >> .env
echo "BUCKET_SECRET_KEY=${{ secrets.BUCKET_SECRET_KEY }}" >> .env
cat .env
# gradle build
- name: Build with Gradle
run: ./gradlew clean build -x test
Expand All @@ -70,5 +104,5 @@ jobs:
script: |
sudo docker ps
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/outfoot
sudo docker run -d -p 8080:8080 --env-file=.env ${{ secrets.DOCKER_USERNAME }}/outfoot
sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/outfoot
sudo docker image prune -f

0 comments on commit fcf27a6

Please sign in to comment.