Files
schwab-mcp-custom/.gitea/workflows/build.yaml
b3nw ef82ac0531
Some checks failed
Build and Push Docker Image / build (push) Failing after 5s
fix(ci): use URL-embedded token for cross-repo clone
actions/checkout@v3's Basic auth header fails with 403 Forbidden when
accessing a different private repository (CR_PAT only works for the
current repo's scope via that method).

Switch to a plain git clone with the token embedded in the HTTPS URL,
which matches how previous builds successfully cloned schwab-scraper.
2026-04-28 01:30:40 +00:00

40 lines
1.1 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clone schwab-scraper
run: |
mkdir -p vendor
# Use URL-embedded token for cross-repo access (CR_PAT has registry
# scope; actions/checkout@v3's Basic auth header fails with 403).
git clone --depth=1 --branch main \
"https://${{ gitea.actor }}:${{ secrets.CR_PAT }}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \
vendor/schwab-scraper
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.ext.ben.io
username: ${{ gitea.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.ext.ben.io/${{ gitea.repository }}:latest