From 35be0ba9cbfca42a7c29bc60d06697ee6389ceca Mon Sep 17 00:00:00 2001 From: TerminalMan <84923604+SecretiveShell@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:39:31 +0000 Subject: [PATCH] Update docker.yml --- .github/workflows/docker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e7cdec6..b05314c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,10 +3,10 @@ name: Build and Publish Docker Image to GHCR on: push: branches: - - master # Trigger this action when pushing to the main branch + - master pull_request: branches: - - master # Trigger on pull requests targeting the main branch + - master workflow_dispatch: jobs: @@ -27,15 +27,15 @@ jobs: uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ github.actor }} # Use GitHub username + password: ${{ secrets.GITHUB_TOKEN }} # GitHub token is automatically available in workflows - # Step 4: Build Docker image + # Step 4: Build Docker image with hardcoded name "mcp_bridge" - name: Build Docker image run: | - docker build -t ghcr.io/${{ github.repository_owner }}/my-image:${{ github.sha }} . + docker build -t ghcr.io/${{ github.repository_owner }}/mcp_bridge:${{ github.sha }} . # Step 5: Push the Docker image to GHCR - name: Push Docker image to GHCR run: | - docker push ghcr.io/${{ github.repository_owner }}/my-image:${{ github.sha }} + docker push ghcr.io/${{ github.repository_owner }}/mcp_bridge:${{ github.sha }}