From d03730a7fa223a534206219ba81f75b4d7163671 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Fri, 25 Jul 2025 04:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E9=87=8D=E6=9E=84=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E5=88=86=E7=A6=BB?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=92=8C=E5=90=8E=E7=AB=AF=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 19a0844..1ef6456 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - build-and-push: + build-and-push-frontend: runs-on: ubuntu-latest steps: - name: Checkout code @@ -29,9 +29,23 @@ jobs: push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/neo-blog-frontend:latest + build-and-push-backend: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push backend image uses: docker/build-push-action@v5 with: context: . push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/neo-blog-backend:latest \ No newline at end of file + tags: ${{ secrets.DOCKERHUB_USERNAME }}/neo-blog-backend:latest