Skip to content

Update default_handlers.txt #10

Update default_handlers.txt

Update default_handlers.txt #10

name: Docker Build and Push
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Clean up Docker resources to free space
run: |
docker system prune -a -f
docker volume prune -f
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
run: |
# Navigate to the directory containing the Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 --tag sema4ai/sema4ai-data-server:latest --push --file docker/mindsdb.Dockerfile .