Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
ci(docker): also build & publish the -web image variant (#3389)
Felipe Almemaned275bb54be4
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex 73ecaa987e..961e979745 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -176,20 +176,46 @@ jobs:env:DOCKER_BUILDKIT_INLINE_CACHE: 1- - name: Export digest+ - name: Build and push WEB platform image by digest+ id: build-web+ uses: docker/build-push-action@v7+ with:+ context: .+ target: runner-web+ platforms: ${{ matrix.platform }}+ outputs: type=image,push-by-digest=true,name-canonical=true,push=true+ tags: |+ ${{ env.IMAGE_NAME }}+ ${{ env.GHCR_IMAGE_NAME }}+ cache-from: type=gha,scope=docker-web-${{ matrix.arch }}+ cache-to: type=gha,scope=docker-web-${{ matrix.arch }},mode=max+ no-cache: falseenv:- DIGEST: ${{ steps.build.outputs.digest }}+ DOCKER_BUILDKIT_INLINE_CACHE: 1++ - name: Export digests+ env:+ DIGEST_BASE: ${{ steps.build.outputs.digest }}+ DIGEST_WEB: ${{ steps.build-web.outputs.digest }}run: |set -euo pipefail- mkdir -p /tmp/digests- digest="${DIGEST#sha256:}"- touch "/tmp/digests/${digest}"+ mkdir -p /tmp/digests/base /tmp/digests/web+ touch "/tmp/digests/base/${DIGEST_BASE#sha256:}"+ touch "/tmp/digests/web/${DIGEST_WEB#sha256:}"- - name: Upload digest+ - name: Upload base digestsuses: actions/upload-artifact@v7with:- name: digests-${{ matrix.arch }}- path: /tmp/digests/*+ name: digests-base-${{ matrix.arch }}+ path: /tmp/digests/base/*+ if-no-files-found: error+ retention-days: 1++ - name: Upload web digests+ uses: actions/upload-artifact@v7+ with:+ name: digests-web-${{ matrix.arch }}+ path: /tmp/digests/web/*if-no-files-found: errorretention-days: 1@@ -228,54 +254,67 @@ jobs:username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}- - name: Download digests+ - name: Download base digestsuses: actions/download-artifact@v8with:- pattern: digests-*- path: /tmp/digests+ pattern: digests-base-*+ path: /tmp/digests/base+ merge-multiple: true++ - name: Download web digests+ uses: actions/download-artifact@v8+ with:+ pattern: digests-web-*+ path: /tmp/digests/webmerge-multiple: true- name: Create Docker Hub manifestrun: |set -euo pipefail- tags=(-t "${IMAGE_NAME}:${VERSION}")- if [ "$PROMOTE_LATEST" = "true" ]; then- tags+=(-t "${IMAGE_NAME}:latest")- fi-- refs=()- while IFS= read -r digest_file; do- refs+=("${IMAGE_NAME}@sha256:$(basename "$digest_file")")- done < <(find /tmp/digests -type f | sort)-- if [ "${#refs[@]}" -eq 0 ]; then- echo "No image digests were downloaded." >&2- exit 1- fi+ create_manifest() {+ local image="$1" suffix="$2" dir="$3"+ local tags=(-t "${image}:${VERSION}${suffix}")+ if [ "$PROMOTE_LATEST" = "true" ]; then+ tags+=(-t "${image}:latest${suffix}")+ fi+ local refs=()+ while IFS= read -r digest_file; do+ refs+=("${image}@sha256:$(basename "$digest_file")")+ done < <(find "$dir" -type f | sort)+ if [ "${#refs[@]}" -eq 0 ]; then+ echo "No image digests in $dir" >&2+ exit 1+ fi+ docker buildx imagetools create "${tags[@]}" "${refs[@]}"+ }- docker buildx imagetools create "${tags[@]}" "${refs[@]}"+ create_manifest "${IMAGE_NAME}" "" /tmp/digests/base+ create_manifest "${IMAGE_NAME}" "-web" /tmp/digests/web- name: Create GHCR manifestrun: |set -euo pipefail- tags=(-t "${GHCR_IMAGE_NAME}:${VERSION}")- if [ "$PROMOTE_LATEST" = "true" ]; then- tags+=(-t "${GHCR_IMAGE_NAME}:latest")- fi-- refs=()- while IFS= read -r digest_file; do- refs+=("${GHCR_IMAGE_NAME}@sha256:$(basename "$digest_file")")- done < <(find /tmp/digests -type f | sort)-- if [ "${#refs[@]}" -eq 0 ]; then- echo "No image digests were downloaded." >&2- exit 1- fi+ create_manifest() {+ local image="$1" suffix="$2" dir="$3"+ local tags=(-t "${image}:${VERSION}${suffix}")+ if [ "$PROMOTE_LATEST" = "true" ]; then+ tags+=(-t "${image}:latest${suffix}")+ fi+ local refs=()+ while IFS= read -r digest_file; do+ refs+=("${image}@sha256:$(basename "$digest_file")")+ done < <(find "$dir" -type f | sort)+ if [ "${#refs[@]}" -eq 0 ]; then+ echo "No image digests in $dir" >&2+ exit 1+ fi+ docker buildx imagetools create "${tags[@]}" "${refs[@]}"+ }- docker buildx imagetools create "${tags[@]}" "${refs[@]}"+ create_manifest "${GHCR_IMAGE_NAME}" "" /tmp/digests/base+ create_manifest "${GHCR_IMAGE_NAME}" "-web" /tmp/digests/web- name: Inspect imageif: needs.prepare.outputs.version != 'main'