41a21b5606
Build & Deploy Tippspiel / build (push) Has been cancelled
actions/checkout@v4 needs Node.js which isn't available in host mode. Use git clone directly instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
517 B
YAML
23 lines
517 B
YAML
name: Build & Deploy Tippspiel
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
rm -rf workspace && mkdir workspace
|
|
git clone --depth 1 --branch main http://gitea:3000/mwf975_git/tippspiel.git workspace
|
|
|
|
- name: Build Docker Image
|
|
run: |
|
|
cd workspace
|
|
docker build -t wm2026-tippspiel:latest -t wm2026-tippspiel:${GITHUB_SHA:-latest} .
|
|
|
|
- name: Cleanup
|
|
run: rm -rf workspace
|