Files
schwab-mcp-custom/.gitea/workflows/build.yaml
b3nw 60e7747e25
Some checks failed
Build and Push Docker Image / build (push) Failing after 5s
fix(ci): revert github.token, use CR_PAT via env for cross-repo clone
2026-04-28 01:37:14 +00:00

40 lines
972 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
env:
CLONE_TOKEN: ${{ secrets.CR_PAT }}
run: |
mkdir -p vendor
git clone --depth=1 --branch main \
"https://x-access-token:${CLONE_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