Skip to content

Add GitHub CLI to Agent Crew image #2

Add GitHub CLI to Agent Crew image

Add GitHub CLI to Agent Crew image #2

Workflow file for this run

name: Agent Crew Image
on:
push:
branches: [main]
paths:
- 'agentcrew/**'
pull_request:
branches: [main]
paths:
- 'agentcrew/**'
permissions:
contents: read
packages: write
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: agentcrew
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'push' }}
tags: |
ghcr.io/${{ github.repository }}/agentcrew:latest
ghcr.io/${{ github.repository }}/agentcrew:${{ github.sha }}