From 83982474fd970e04b455b303297dc0937df91091 Mon Sep 17 00:00:00 2001 From: Bojun Kim Date: Thu, 23 Nov 2023 16:38:01 +0900 Subject: [PATCH] Update backend-deploy.yml --- .github/workflows/backend-deploy.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backend-deploy.yml b/.github/workflows/backend-deploy.yml index e5d154a0..e49cab97 100644 --- a/.github/workflows/backend-deploy.yml +++ b/.github/workflows/backend-deploy.yml @@ -12,7 +12,7 @@ permissions: checks: write jobs: - backend-test: + build-and-push: runs-on: ubuntu-latest @@ -60,5 +60,13 @@ jobs: push: true tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - - + deploy: + runs-on: self-hosted + if: ${{ needs.docker-build.result == 'success' }} + needs: [ build-and-push ] + steps: + - name: 도커 풀 / 파일 실행 + run: | + sudo ~/deploy.sh + +