From 5c915a1b9d5bda18969ed5295445b41a878e400f Mon Sep 17 00:00:00 2001 From: Minseong Park Date: Sat, 3 Aug 2024 22:19:34 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20manual-prod-deploy.yaml=20docker=20imag?= =?UTF-8?q?e=20push=EA=B3=BC=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/manual-prod-deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/manual-prod-deploy.yaml b/.github/workflows/manual-prod-deploy.yaml index 08f36f72..e3b7f23b 100644 --- a/.github/workflows/manual-prod-deploy.yaml +++ b/.github/workflows/manual-prod-deploy.yaml @@ -16,6 +16,22 @@ jobs: with: ref: ${{ github.event.inputs.tag }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/spot-server:prod-${{ github.event.inputs.tag }} + - name: Deploy to PROD - AWS EC2 uses: appleboy/ssh-action@master with: