From 28853a221b993738c91f8ce3d8438012aa9fa0a5 Mon Sep 17 00:00:00 2001 From: ssupecial Date: Thu, 24 Oct 2024 18:52:11 +0900 Subject: [PATCH] make cd github actions pipeline --- .github/workflows/cd.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..4361418 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,19 @@ +name: CD - Web +on: + push: + branches: [ "main" ] + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + + - name: Run Docker Compose + working-directory: ./web + run: docker-compose up -d --build