Skip to content

chore: improve agentstack integration #4

chore: improve agentstack integration

chore: improve agentstack integration #4

Workflow file for this run

name: Build and Push Agent Image
on:
push:
tags:
- 'release-*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install Agent Stack CLI
run: pip install agentstack-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}}'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Extract version from tag
# id: extract_version
# run: |
# # Extract version from tag (e.g., release-1.2.3 -> 1.2.3)
# VERSION=${GITHUB_REF#refs/tags/release-}
# echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and Push
run: |
agentstack build ./ --tag ghcr.io/${{ github.repository }}/github-issue-creator --no-import --multi-platform --push