Skip to content

Commit 3ce3a8f

Browse files
Mossakaclaude
andauthored
feat(ci): add api-proxy image to release pipeline (#846)
The api-proxy sidecar container (containers/api-proxy/) exists in the repo but was never wired into the release workflow. This means the image ghcr.io/github/gh-aw-firewall/api-proxy:<version> was never published to GHCR, causing smoke tests to fail when --enable-api-proxy is used: Container awf-api-proxy Error response from daemon: No such image: ghcr.io/github/gh-aw-firewall/api-proxy:0.16.5 Add build, push, cosign signing, and SBOM attestation steps for the api-proxy image, matching the existing pattern for squid and agent images. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89456df commit 3ce3a8f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,37 @@ jobs:
122122
--type spdxjson \
123123
ghcr.io/${{ github.repository }}/agent@${{ steps.build_agent.outputs.digest }}
124124
125+
- name: Build and push API Proxy image
126+
id: build_api_proxy
127+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
128+
with:
129+
context: ./containers/api-proxy
130+
push: true
131+
tags: |
132+
ghcr.io/${{ github.repository }}/api-proxy:${{ steps.version_early.outputs.version_number }}
133+
ghcr.io/${{ github.repository }}/api-proxy:latest
134+
cache-from: type=gha
135+
cache-to: type=gha,mode=max
136+
137+
- name: Sign API Proxy image with cosign
138+
run: |
139+
cosign sign --yes \
140+
ghcr.io/${{ github.repository }}/api-proxy@${{ steps.build_api_proxy.outputs.digest }}
141+
142+
- name: Generate SBOM for API Proxy image
143+
uses: anchore/sbom-action@28d71544de8eaf1b958d335707167c5f783590ad # v0.22.2
144+
with:
145+
image: ghcr.io/${{ github.repository }}/api-proxy@${{ steps.build_api_proxy.outputs.digest }}
146+
format: spdx-json
147+
output-file: api-proxy-sbom.spdx.json
148+
149+
- name: Attest SBOM for API Proxy image
150+
run: |
151+
cosign attest --yes \
152+
--predicate api-proxy-sbom.spdx.json \
153+
--type spdxjson \
154+
ghcr.io/${{ github.repository }}/api-proxy@${{ steps.build_api_proxy.outputs.digest }}
155+
125156
# Build agent-act image with catthehacker/ubuntu:act-24.04 base for GitHub Actions parity
126157
- name: Build and push Agent-Act image
127158
id: build_agent_act

0 commit comments

Comments
 (0)