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 + +