Skip to content

Feat/general fixes v1 #1

Feat/general fixes v1

Feat/general fixes v1 #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: hummingbot/hummingbot-mcp
tags: |
type=raw,value=latest,enable={{ github.ref == 'refs/heads/main' }}
type=raw,value=development,enable={{ github.event_name == 'pull_request' }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=hummingbot/hummingbot-mcp:cache
cache-to: type=inline