bug: aws 인스턴스에 환경변수 전달 안되는 문제 수정 및 docker compose 파일 db에 의존성 가지게 수정 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bottles Pull Request Workflow | |
on: | |
pull_request: | |
branches: | |
- develop | |
types: [opened, reopened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
shell: bash | |
- name: Build with gradle | |
run: ./gradlew clean build | |
shell: bash | |
- name: Send Discord Notification | |
if: github.event.action == 'opened' || github.event.action == 'reopened' | |
env: | |
DATA: | | |
{ | |
"embeds": [ | |
{ | |
"author": { | |
"name": ${{ toJson(github.event.sender.login) }}, | |
"url": "https://github.com/${{ github.event.sender.login }}", | |
"icon_url": ${{ toJson(github.event.sender.avatar_url) }} | |
}, | |
"title": ${{ toJson(github.event.pull_request.title) }}, | |
"description": ${{ toJson(github.event.pull_request.body) }}, | |
"url": ${{ toJson(github.event.pull_request.html_url) }}, | |
"color": 65280 | |
} | |
] | |
} | |
run: | | |
curl -X POST -H 'Content-type: application/json' \ | |
-d "$DATA" \ | |
${{ secrets.DISCORD_WEBHOOK_URL }} |