Compare commits
9
Commits
agent-run/T0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ecdca82edf | ||
|
|
7197fee8db | ||
|
|
49157e2285 | ||
|
|
aea0ccbbf7 | ||
|
|
e5f6e09b3b | ||
|
|
436b409c56 | ||
|
|
a61e55027a | ||
|
|
0a2740a9da | ||
|
|
5d8e5520af |
@@ -0,0 +1,23 @@
|
|||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: rust
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
run: |
|
||||||
|
git init
|
||||||
|
git remote add origin https://forgejo.riotpiao.com/rock/poiman.git
|
||||||
|
git fetch origin ${{ github.ref_name }} --depth=1
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
|
- name: Check formatting
|
||||||
|
run: cargo fmt -- --check || true
|
||||||
|
|
||||||
|
- name: Clippy lint
|
||||||
|
run: cargo clippy --all-targets || true
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: poimen
|
||||||
|
labels:
|
||||||
|
app: poimen
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: poimen-workflows
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: poimen-workflows
|
||||||
|
app.kubernetes.io/component: orchestrator
|
||||||
|
spec:
|
||||||
|
project: homelab
|
||||||
|
source:
|
||||||
|
repoURL: https://forgejo.riotpiao.com/rock/poimen-workflows.git
|
||||||
|
targetRevision: main
|
||||||
|
path: k8s
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: poimen
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
retry:
|
||||||
|
limit: 5
|
||||||
|
backoff:
|
||||||
|
duration: 5s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 3m
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: poimen
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
# Explicit allowlist, not the 'rock/*' wildcard -- only repos with an actual
|
||||||
|
# Application under this project belong here. Add a line here when (and only
|
||||||
|
# when) a new Application is registered.
|
||||||
|
sourceRepos:
|
||||||
|
- 'https://forgejo.riotpiao.com/rock/poimen-workflows.git'
|
||||||
|
destinations:
|
||||||
|
- namespace: 'poimen'
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
- namespace: 'default'
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
clusterResources: false
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: poimen
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- argocd/apps/namespace.yaml
|
||||||
|
|
||||||
|
# Cross-repo references (poimen-memory, poimen-workflows) can be added here
|
||||||
|
# via kustomize remote bases or by separate ArgoCD Applications
|
||||||
|
|
||||||
|
commonLabels:
|
||||||
|
app: poimen
|
||||||
|
managed-by: argocd
|
||||||
|
|
||||||
|
commonAnnotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "7"
|
||||||
Reference in New Issue
Block a user