Files
schwab-mcp-custom/.gitea/workflows/build.yaml
b3nw 7550e39add
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m7s
ci: add manual and scheduled image rebuilds
2026-05-20 13:36:43 -05:00

45 lines
1.2 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
- master
workflow_dispatch:
schedule:
- cron: '17 */6 * * *'
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.CRT_READ_ONLY }}
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
git -C vendor/schwab-scraper rev-parse HEAD > vendor/schwab-scraper-commit.txt
echo "${{ gitea.sha }}" > vendor/mcp-server-commit.txt
- 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