- Alpine-based Docker image - zsh + zinit + Powerlevel10k - zsh-autosuggestions, fast-syntax-highlighting - CLI tools: yazi, eza, fzf, duf, ncdu, bat, tree, tmux - NvChad (neovim IDE config) - Weekly Gitea Actions build workflow (multi-arch) - Gitea Container Registry publishing
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: build-weekly
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 8 * * 0' # 每周日 UTC 8:00 (北京时间 16:00)
|
|
workflow_dispatch: # 支持手动触发
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git init .
|
|
git remote add origin "${GITHUB_SERVER_URL%/}/${GITHUB_REPOSITORY}.git"
|
|
git -c http.extraheader="Authorization: token ${{ secrets.CHECKOUT_TOKEN }}" \
|
|
fetch --depth=1 origin "${GITHUB_SHA}"
|
|
git checkout --force FETCH_HEAD
|
|
|
|
- name: Set up QEMU (for multi-arch build)
|
|
run: docker run --privileged --rm tonistiigi/binfmt --install all
|
|
|
|
- name: Set up Docker Buildx
|
|
run: |
|
|
docker buildx create --use --driver docker-container --name builder 2>/dev/null || true
|
|
docker buildx inspect --bootstrap
|
|
|
|
- name: Login to Gitea Container Registry
|
|
run: echo "${{ secrets.CHECKOUT_TOKEN }}" | docker login git.luochen570.cn -u luochen570 --password-stdin
|
|
|
|
- name: Build and push (multi-arch)
|
|
run: |
|
|
TAG_WEEKLY="weekly-$(date +%Y%m%d)"
|
|
docker buildx build \
|
|
--platform linux/amd64,linux/arm64 \
|
|
--push \
|
|
-t "git.luochen570.cn/luochen570/luochen570-cli:latest" \
|
|
-t "git.luochen570.cn/luochen570/luochen570-cli:${TAG_WEEKLY}" \
|
|
.
|