Skip to content

chore(ci): [OPE-1905] parameterize squid image build by squid folder - #124

Open
atepem wants to merge 1 commit into
chore/bump-vulnerable-resolutionsfrom
chore/parameterize-squid-image-build
Open

chore(ci): [OPE-1905] parameterize squid image build by squid folder#124
atepem wants to merge 1 commit into
chore/bump-vulnerable-resolutionsfrom
chore/parameterize-squid-image-build

Conversation

@atepem

@atepem atepem commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What

build-squid-image.yaml was hardcoded to predict-polymarket in two places — the image name and the Docker build context — so it could only ever build the one squid. It now takes a squid input naming the folder under squids/.

Needed by #125 , which adds a second squid.

Changes

  • New squid input, alongside the existing version.
  • Image name: <registry>/$INPUT_SQUID-squid (was hardcoded).
  • Build context: ./squids/${{ inputs.squid }} (was hardcoded).
  • run-name now shows which squid is building.

Two guards, because the value is interpolated into a filesystem path:

  • Validated against ^[a-z0-9][a-z0-9-]*$ before use — no slashes, dots or uppercase.
  • After checkout, confirms squids/<name>/Dockerfile exists, and lists the available squids on failure rather than letting buildx fail on a missing context.

Main-branch gate and the linux/amd64 pin are untouched.

Note for review

The input is required: true with no default, matching deploy-subgraph.yaml's subgraph input so the two workflows read the same way. The tradeoff: existing polymarket builds now need the name typed rather than defaulting. Happy to default it to predict-polymarket if you'd rather — one line.

Testing

YAML validated and the logic reviewed by hand. Not dispatched: workflow_dispatch only runs from main, and a run pushes a real image, so the first true test is the first use after merge.

🤖 Generated with Claude Code

@atepem atepem changed the title chore(ci): parameterize squid image build by squid folder chore(ci): [OPE-1905] parameterize squid image build by squid folder Sep 4, 2026
build-squid-image.yaml hardcoded predict-polymarket in two places: the
image name and the Docker build context. Take a `squid` input instead,
matching deploy-subgraph.yaml's `subgraph` input (required string, no
default) so the two workflows read the same way.

The name is interpolated into a filesystem path and an image name, so it
is validated against ^[a-z0-9][a-z0-9-]*$ before use, and a post-checkout
step confirms squids/<name>/Dockerfile exists (listing the available
squids on failure) rather than letting buildx fail on a missing context.

Main-branch gate and the linux/amd64 pin are untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@atepem
atepem force-pushed the chore/parameterize-squid-image-build branch from 317b6cf to 4e8d482 Compare September 7, 2026 07:58
@atepem
atepem changed the base branch from main to chore/bump-vulnerable-resolutions September 7, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants