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