Initial commit: Modular personal toolbox with high-fidelity Chinese stroke order tool and CI/CD
Build and Push Docker Image / build (push) Failing after 3h14m47s

This commit is contained in:
2026-02-23 02:04:11 -08:00
commit 4fd43d7200
17 changed files with 1183 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
# 指向 K8s Runner 中共享挂载的 Socket 路径
DOCKER_HOST: unix:///run/docker.sock
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Registry
run: echo "${{ secrets.PUSH_TOKEN }}" | docker login git.pengzhan.dev -u "${{ github.actor }}" --password-stdin
- name: Build and push Docker image
run: |
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
IMAGE_NAME="git.pengzhan.dev/$REPO_LOWER"
docker build -t $IMAGE_NAME:latest -t $IMAGE_NAME:${{ github.sha }} .
docker push $IMAGE_NAME:latest
docker push $IMAGE_NAME:${{ github.sha }}