Skip to content

[Refactor] cors method 추가 #16

[Refactor] cors method 추가

[Refactor] cors method 추가 #16

Workflow file for this run

name: CI/CD
on:
push:
branches: [ "server" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- run: mkdir ./src/main/resources
- run: touch ./src/main/resources/application.properties
- run: echo "${{ secrets.APPLICATION }}" > ./src/main/resources/application.properties
- run: cat ./src/main/resources/application.properties
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew clean build -x test
- name: Send file to the server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "./build/libs/*.jar"
target: download
- name: Deploy remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script_stop: true
script: |
sh deploy-basic/deploy.sh