diff --git a/.github/workflows/CD-dev.yml b/.github/workflows/CD-dev.yml index a4ba000..903fd5b 100644 --- a/.github/workflows/CD-dev.yml +++ b/.github/workflows/CD-dev.yml @@ -20,7 +20,13 @@ jobs: distribution: 'corretto' - name: Build with Gradle - run: ./gradlew build -Dspring.profiles.active=dev + env: + MYSQL_DATABASE_URL: ${{ secrets.MYSQL_DATABASE_URL }} + MYSQL_DATABASE_USERNAME: ${{ secrets.MYSQL_DATABASE_USERNAME }} + MYSQL_DATABASE_PASSWORD: ${{ secrets.MYSQL_DATABASE_PASSWORD }} + MYSQL_DATABASE_LOCAL_URL: ${{ secrets.MYSQL_DATABASE_LOCAL_URL }} + PROFILE: ${{ secrets.PROFILE }} # 활성화할 프로파일 + run: ./gradlew build -Dspring.profiles.active=${{ secrets.PROFILE }} - name: Copy files to server uses: appleboy/scp-action@v0.1.0