[FIx] ReminderSimpleDto alarm 값 추가 #36
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: Gradle CI & CD | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
Build-Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Create properties | |
run: | | |
cd favor | |
echo "${{ secrets.GRADLE_PROPERTIES_CONTENT }}" > gradle.properties | |
mkdir -p src/main/resources | |
echo "${{ secrets.APPLICATION_YML_CONTENT }}" > src/main/resources/application.yml | |
- name: Grant execute permission for gradlew | |
run: | | |
cd favor | |
chmod +x gradlew | |
- name: Build with Gradle | |
run: | | |
cd favor | |
./gradlew jib | |
- name: Deploy to Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST_ADDRESS }} | |
username: ${{ secrets.SERVER_USERNAME }} | |
password: ${{ secrets.SERVER_PASSWORD }} | |
port : ${{ secrets.SERVER_PORT }} | |
script: | | |
docker stop ${{ secrets.APPLICATION_NAME }} | |
docker rm ${{ secrets.APPLICATION_NAME }} | |
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }} | |
docker run --network=host -d -p ${{ secrets.DEPLOY_PORT }}:8080 -e TZ=Asia/Seoul --name ${{ secrets.APPLICATION_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }} |