From 0bfeb49b75f0e335c51e6008275ca571665e76ee Mon Sep 17 00:00:00 2001 From: Pahud Hsieh Date: Wed, 3 Jun 2026 07:17:10 -0400 Subject: [PATCH] ci: fix agy-acp artifact collision with source directory docker cp to a path that already exists as a directory copies the file INTO that directory instead of creating a file at that path. Since agy-acp/ is a source directory in the repo, the binary ended up at agy-acp/agy-acp and the artifact upload grabbed the whole directory. Fix by staging all binaries into .binaries/ before upload. --- .github/workflows/docker-smoke-test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-smoke-test.yml b/.github/workflows/docker-smoke-test.yml index 8fca0865..71d410f9 100644 --- a/.github/workflows/docker-smoke-test.yml +++ b/.github/workflows/docker-smoke-test.yml @@ -15,9 +15,10 @@ jobs: - name: Build openab binary (once) run: | + mkdir -p .binaries DOCKER_BUILDKIT=1 docker build --target builder -t openab-builder -f Dockerfile . CID=$(docker create openab-builder) - docker cp "$CID:/build/target/release/openab" openab + docker cp "$CID:/build/target/release/openab" .binaries/openab docker rm "$CID" - name: Build agy-acp adapter (for Dockerfile.antigravity) @@ -25,7 +26,7 @@ jobs: if [ -f Dockerfile.antigravity ]; then DOCKER_BUILDKIT=1 docker build --target adapter-builder -t agy-acp-builder -f Dockerfile.antigravity . CID=$(docker create agy-acp-builder) - docker cp "$CID:/build/target/release/agy-acp" agy-acp + docker cp "$CID:/build/target/release/agy-acp" .binaries/agy-acp docker rm "$CID" fi @@ -33,9 +34,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: openab-binary - path: | - openab - agy-acp + path: .binaries/ retention-days: 1 smoke-test: