1li homelab

Overview

Workflows

以下是範例 workflows,用於建構 docker image、上傳、更新 k8s manifests

.forgejo/workflows/build.yaml
name: Build and publish image

on: push: tags: - "v*.."

concurrency: group: publish-tlsask-k8s cancel-in-progress: false

jobs: build-and-push: runs-on: docker-build

steps:
  - name: Check out repository
    uses: actions/checkout@v6

  - name: Build and push
    id: image
    uses: https://git.1li.tw/actions/[email protected]
    with:
      username: ${{ vars.REGISTRY_USERNAME }}
      pat: ${{ secrets.REGISTRY_TOKEN }}

  - name: Propose Kubernetes update
    id: manifest
    uses: https://git.1li.tw/actions/[email protected]
    with:
      token: ${{ secrets.K8S_PR_TOKEN }}
      repository: 1li/k8s
      base-branch: main
      manifest: apps/firebot.yaml
      namespace: default
      workload: firebot
      container: firebot
      image-ref: ${{ steps.image.outputs.image-ref }}

Updated 2026-10-03 20:34:25 +08:00