Skip to content

Commit

Permalink
chore(cd): 파일 체크 확인을 위해 ci cd 통합
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 22, 2024
1 parent 45e9d7a commit 9ae3314
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 36 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

37 changes: 27 additions & 10 deletions .github/workflows/cd.yml → .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
name: cd
name: cicd

on:
workflow_run:
workflows: [ "ci" ]
paths:
- 'main-server/**'
- 'logging-server/**'
types:
- completed
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]
Expand Down Expand Up @@ -44,5 +62,4 @@ jobs:
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
chmod +x ~/script/deploy-logging-server.sh
zsh ~/script/deploy-logging-server.sh
zsh ~/script/deploy-logging-server.sh

0 comments on commit 9ae3314

Please sign in to comment.