Skip to content

chore(cors): https 추가 #78

chore(cors): https 추가

chore(cors): https 추가 #78

Workflow file for this run

name: CI and CD
on:
push:
branches: [ "master" ]
permissions:
contents: read
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dorny/[email protected]
id: changes
with:
filters: |
main:
- 'main-server/**'
logging:
- 'logging-server/**'
- name: deploy main-server
if: steps.changes.outputs.front == 'true'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
passphrase: ${{ secrets.SERVER_PASSPHRASE }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
sh ~/script/deploy-main-server.sh
- name: deploy logging-server
if: steps.changes.outputs.back == 'true'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
passphrase: ${{ secrets.SERVER_PASSPHRASE }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
sh ~/script/deploy-logging-server.sh