ci: CD 워크플로우 추가 (docker-compose 재구동)
Some checks failed
Deploy Web Application / deploy (push) Has been cancelled
Some checks failed
Deploy Web Application / deploy (push) Has been cancelled
This commit is contained in:
18
.github/workflows/deploy.yml
vendored
Normal file
18
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Deploy Web Application
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Restart Server
|
||||
run: |
|
||||
docker compose down
|
||||
docker compose up -d --build
|
||||
Reference in New Issue
Block a user