Update docker-image.yml

This commit is contained in:
samanhappy
2025-03-31 19:48:44 +08:00
committed by GitHub
parent 81d54766f6
commit 35bce33ef6

View File

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