Skip to content

refactor(template) : 버튼 글자 가운데 정렬 #18

refactor(template) : 버튼 글자 가운데 정렬

refactor(template) : 버튼 글자 가운데 정렬 #18

Workflow file for this run

name: cicd
on:
push:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
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:
needs: [build]
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.main == 'true'
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
chmod +x ~/script/deploy-main-server.sh
zsh ~/script/deploy-main-server.sh
- name: deploy logging-server
if: steps.changes.outputs.logging == 'true'
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
chmod +x ~/script/deploy-logging-server.sh
zsh ~/script/deploy-logging-server.sh