Skip to content

fix(docker): add setup docker action #15

fix(docker): add setup docker action

fix(docker): add setup docker action #15

Workflow file for this run

name: Build and Push Agent Image
on:
push:
branches:
- main
- feat/github-actions-example
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout beeai-platform
uses: actions/checkout@v3
with:
repository: i-am-bee/beeai-platform
path: beeai-platform
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install uvx
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
# Temporarily disabled until the CLI is published to PyPI
# - name: Install BeeAI CLI
# run: pip install beeai-cli
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker
uses: docker/setup-docker-action@v4
with:
daemon-config: { "features": { "containerd-snapshotter": true } }

Check failure on line 50 in .github/workflows/build-agent.yaml

View workflow run for this annotation

GitHub Actions / Build and Push Agent Image

Invalid workflow file

The workflow is not valid. .github/workflows/build-agent.yaml (Line: 50, Col: 24): A mapping was not expected
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push
run: |
uvx --from "./beeai-platform/apps/beeai-cli" beeai build ./ --tag ghcr.io/${{ github.repository }}/my-agent:latest --no-import --multi-platform
docker push ghcr.io/${{ github.repository }}/my-agent:latest