Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): add proper error handling to docker publish workflow (#1339)

LearningCircuitaf8bc5e89363
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 779e122c90..da12aceab5 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -202,6 +202,7 @@ jobs:
- name: Determine version tag
id: version
run: |
+ set -euo pipefail
if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
TAG="${{ github.event.client_payload.tag }}"
else
@@ -228,6 +229,7 @@ jobs:
- name: Create and push multi-platform manifest
id: manifest
run: |
+ set -euo pipefail
# Get the tags from metadata (newline separated)
TAGS="${{ steps.meta.outputs.tags }}"
@@ -236,31 +238,33 @@ jobs:
echo "primary_tag=$FIRST_TAG" >> "$GITHUB_OUTPUT"
# Create manifest for each tag
- echo "$TAGS" | while IFS= read -r tag; do
+ while IFS= read -r tag; do
if [ -n "$tag" ]; then
echo "Creating manifest for: $tag"
docker buildx imagetools create -t "$tag" \
${{ secrets.DOCKER_USERNAME }}/local-deep-research:amd64-${{ github.sha }} \
${{ secrets.DOCKER_USERNAME }}/local-deep-research:arm64-${{ github.sha }}
fi
- done
+ done <<< "$TAGS"
- name: Sign Docker images with Cosign
env:
TAGS: ${{ steps.meta.outputs.tags }}
run: |
+ set -euo pipefail
# Sign each image tag using keyless signing with GitHub OIDC
- echo "$TAGS" | while IFS= read -r tag; do
+ while IFS= read -r tag; do
if [ -n "$tag" ]; then
echo "Signing image: $tag"
cosign sign --yes "$tag"
fi
- done
+ done <<< "$TAGS"
- name: Generate SLSA provenance attestation
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
run: |
+ set -euo pipefail
# Generate SLSA provenance predicate
# Note: SLSA spec requires "sha1" field name for git commit digest
cat > provenance.json <<EOF
@@ -306,6 +310,7 @@ jobs:
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
run: |
+ set -euo pipefail
echo "Verifying signature for: $PRIMARY_TAG"
cosign verify \
--certificate-identity-regexp="https://github.com/${{ github.repository }}" \
@@ -316,6 +321,7 @@ jobs:
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
run: |
+ set -euo pipefail
# Generate SBOM using syft
docker pull "$PRIMARY_TAG"
syft "$PRIMARY_TAG" -o spdx-json > sbom.spdx.json