From 9d5ae23028c6c845178de33d9aa4e0f6ca236e6e Mon Sep 17 00:00:00 2001 From: charlie3965 Date: Tue, 10 Feb 2026 16:20:33 +0900 Subject: [PATCH 1/5] dev init --- .../{docker-image.yml => deploy.yaml} | 4 +- .github/workflows/dev.yaml | 41 +++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) rename .github/workflows/{docker-image.yml => deploy.yaml} (92%) create mode 100644 .github/workflows/dev.yaml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/deploy.yaml similarity index 92% rename from .github/workflows/docker-image.yml rename to .github/workflows/deploy.yaml index 4d3fcc6..346a574 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/deploy.yaml @@ -8,7 +8,7 @@ on: jobs: build-and-deploy: - runs-on: self-hosted # 로컬 Ubuntu의 actions 계정에서 실행됨 + runs-on: self-hosted steps: - name: Checkout code @@ -38,4 +38,4 @@ jobs: -e CONTROL_HOST=${{ secrets.CONTROL_HOST }} \ -e CONTROL_PORT=${{ secrets.CONTROL_PORT }} \ $IMAGE - docker system prune -af + docker system prune -af \ No newline at end of file diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml new file mode 100644 index 0000000..a4a2f1a --- /dev/null +++ b/.github/workflows/dev.yaml @@ -0,0 +1,41 @@ +name: Build and Deploy Docker Image + +on: + workflow_dispatch: {} + push: + branches: + - dev + +jobs: + build-and-deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build and tag Docker image + run: | + docker build --no-cache -t kws_be:latest . + + - name: Deploy container locally + run: | + IMAGE=kws_be:latest + docker stop KWS_BE || true + docker rm KWS_BE || true + docker run -d --name KWS_BE -p 25122:8000 \ + -e DATABASE_BACKEND=${{ secrets.DATABASE_BACKEND }} \ + -e DATABASE_CON2BACK=${{ secrets.DATABASE_CON2BACK }} \ + -e JWT_SECRET=${{ secrets.JWT_SECRET }} \ + -e JWT_REFRESH_SECRET=${{ secrets.JWT_REFRESH_SECRET }} \ + -e REDIS_HOST=${{ secrets.REDIS_HOST }} \ + -e REDIS_PORT=${{ secrets.REDIS_PORT }} \ + -e REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }} \ + -e SMTP_SERVER=${{ secrets.SMTP_SERVER }} \ + -e SMTP_PORT=${{ secrets.SMTP_PORT }} \ + -e SENDER_EMAIL=${{ secrets.SENDER_EMAIL }} \ + -e SENDER_PASSWORD=${{ secrets.SENDER_PASSWORD }} \ + -e CONTROL_HOST=${{ secrets.CONTROL_HOST }} \ + -e CONTROL_PORT=${{ secrets.CONTROL_PORT }} \ + $IMAGE + docker system prune -af \ No newline at end of file From a5f130948a7e7b477fa048ec2cd7a99cd594be53 Mon Sep 17 00:00:00 2001 From: charlie3965 Date: Tue, 10 Feb 2026 16:21:46 +0900 Subject: [PATCH 2/5] changed dev image name --- .github/workflows/dev.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index a4a2f1a..76036ba 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -16,14 +16,14 @@ jobs: - name: Build and tag Docker image run: | - docker build --no-cache -t kws_be:latest . + docker build --no-cache -t kws_be_dev:latest . - name: Deploy container locally run: | - IMAGE=kws_be:latest - docker stop KWS_BE || true - docker rm KWS_BE || true - docker run -d --name KWS_BE -p 25122:8000 \ + IMAGE=kws_be_dev:latest + docker stop BE_DEV || true + docker rm BE_DEV || true + docker run -d --name BE_DEV -p 25122:8000 \ -e DATABASE_BACKEND=${{ secrets.DATABASE_BACKEND }} \ -e DATABASE_CON2BACK=${{ secrets.DATABASE_CON2BACK }} \ -e JWT_SECRET=${{ secrets.JWT_SECRET }} \ From 6b141b240b7575357ddb24567dd9d8b60db9d708 Mon Sep 17 00:00:00 2001 From: charlie3965 Date: Tue, 10 Feb 2026 16:22:46 +0900 Subject: [PATCH 3/5] changed deploy image name --- .github/workflows/deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 346a574..125bec6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,14 +16,14 @@ jobs: - name: Build and tag Docker image run: | - docker build --no-cache -t kws_be:latest . + docker build --no-cache -t kws_be_deploy:latest . - name: Deploy container locally run: | - IMAGE=kws_be:latest - docker stop KWS_BE || true - docker rm KWS_BE || true - docker run -d --name KWS_BE -p 25121:8000 \ + IMAGE=kws_be_deploy:latest + docker stop BE_Deploy || true + docker rm BE_Deploy || true + docker run -d --name BE_Deploy -p 25121:8000 \ -e DATABASE_BACKEND=${{ secrets.DATABASE_BACKEND }} \ -e DATABASE_CON2BACK=${{ secrets.DATABASE_CON2BACK }} \ -e JWT_SECRET=${{ secrets.JWT_SECRET }} \ From 3e56bcf6c75ea40853fa959938f83dd4316c4a7c Mon Sep 17 00:00:00 2001 From: charlie3965 Date: Tue, 10 Feb 2026 16:24:48 +0900 Subject: [PATCH 4/5] changed deploy workflow name --- .github/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 125bec6..e3de0af 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,4 +1,4 @@ -name: Build and Deploy Docker Image +name: Deploy Doddle WAS on: workflow_dispatch: {} @@ -16,11 +16,11 @@ jobs: - name: Build and tag Docker image run: | - docker build --no-cache -t kws_be_deploy:latest . + docker build --no-cache -t doddle_be_deploy:latest . - name: Deploy container locally run: | - IMAGE=kws_be_deploy:latest + IMAGE=doddle_be_deploy:latest docker stop BE_Deploy || true docker rm BE_Deploy || true docker run -d --name BE_Deploy -p 25121:8000 \ From 6036a974c893e0292a4bf7c36508482e11c84696 Mon Sep 17 00:00:00 2001 From: charlie3965 Date: Tue, 10 Feb 2026 16:25:46 +0900 Subject: [PATCH 5/5] changed dev deploy workflow name --- .github/workflows/dev.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 76036ba..a80a1e0 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -1,4 +1,4 @@ -name: Build and Deploy Docker Image +name: DEV Deploy Doddle WAS on: workflow_dispatch: {} @@ -16,11 +16,11 @@ jobs: - name: Build and tag Docker image run: | - docker build --no-cache -t kws_be_dev:latest . + docker build --no-cache -t doddle_be_dev:latest . - name: Deploy container locally run: | - IMAGE=kws_be_dev:latest + IMAGE=doddle_be_dev:latest docker stop BE_DEV || true docker rm BE_DEV || true docker run -d --name BE_DEV -p 25122:8000 \