Skip to content

️♻️ refactor: 이메일 인증 시큐리티 권한 추가 및 알림 테스트 api 권한 삭제 #80

️♻️ refactor: 이메일 인증 시큐리티 권한 추가 및 알림 테스트 api 권한 삭제

️♻️ refactor: 이메일 인증 시큐리티 권한 추가 및 알림 테스트 api 권한 삭제 #80

Workflow file for this run

name: Java CI with Gradle
on:
pull_request:
branches: [ "develop" ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 2) Convert to prod config
run: |
cd ./src/main/resources
[ -e "application.yml" ] && rm application.yml
echo "spring:" > application.yml
echo " profiles:" >> application.yml
echo " active: prod" >> application.yml
- name: Set FCM
run: |
mkdir -p ./src/main/resources/firebase
echo "${{ secrets.FIREBASE_KEY }}" > ./src/main/resources/firebase/firebase-key.json
- name: 3) Set prod.yml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application-prod.yml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_USERNAME }}
spring.datasource.password: ${{ secrets.DB_PW }}
spring.jwt.secret: ${{ secrets.JWT_SECRET }}
spring.jwt.token.access-expiration-time: ${{ secrets.JWT_ACCESS_EXPIRATION_TIME }}
spring.jwt.token.refresh-expiration-time: ${{ secrets.JWT_REFRESH_EXPIRATION_TIME }}
spring.data.redis.host: ${{ secrets.REDIS_HOST }}
spring.data.redis.port: ${{ secrets.REDIS_PORT }}
cloud.aws.s3.bucket: ${{ secrets.BUCKET }}
cloud.aws.region.static: ${{ secrets.REGION }}
cloud.aws.credentials.accessKey: ${{ secrets.S3_ACCESS_KEY }}
cloud.aws.credentials.secretKey: ${{ secrets.S3_SECRET_KEY }}
mail.smtp.port: ${{ secrets.EMAIL_PORT }}
AdminMail.id: ${{ secrets.EMAIL_ID }}
AdminMail.password: ${{ secrets.EMAIL_PASSWORD }}
firebase.fcmUrl: ${{ secrets.FIREBASE_URL}}
firebase.firebaseConfigPath: ${{ secrets.FIREBASE_PATH}}
- name: 3) Set prod.yml - Debug
run: |
cat ./src/main/resources/application-prod.yml
- name: Grant execute permission for gradlew and build
run: |
chmod +x ./gradlew
./gradlew clean
./gradlew build -x test
# Docker image Build (1)
- name: Docker image build
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/sponus-docker --pull --no-cache --platform linux/amd64 .
# DockerHub Login (2)
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Docker Hub push (3)
- name: Docker Hub push
run: docker push ${{ secrets.DOCKER_USERNAME }}/sponus-docker