No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-07 00:58:53 +08:00
README.md put workflow into <details> 2026-10-07 00:58:53 +08:00

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 }}