Files
schwab-mcp-custom/.gitea/workflows/build.yaml
b3nw 75d29ac769
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s
fix(ci): use github.token for cross-repo clone
Previous attempt failed with 403 Forbidden because CR_PAT doesn't have
scope for cross-repo access in Gitea actions. Use the built-in
github.token instead, which the runner provides for all repos it can
access.
2026-04-28 01:31:53 +00:00

39 lines
982 B
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 the built-in runner token which has cross-repo access.
git clone --depth=1 --branch main \
"https://oauth2:${{ github.token }}@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