From 35bce33ef6d7df36e88e7a1988273eec0b0c2507 Mon Sep 17 00:00:00 2001 From: samanhappy Date: Mon, 31 Mar 2025 19:48:44 +0800 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5244a61..8e04396 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,5 +14,15 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag samanhappy/mcphub:latest + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v3 + with: + push: true + tags: samanhappy/mcphub:latest