Compare commits

...

12 Commits

Author SHA1 Message Date
Gitea Action
bea436058d chore: update image to 000f34a059 [skip ci] 2026-01-25 13:42:45 +00:00
Zpekii
000f34a059 chore: update deploy.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m47s
2026-01-25 21:40:55 +08:00
Zpekii
93837e0248 chore: udpate deploy.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m38s
2026-01-25 21:34:49 +08:00
root
e90fa00227 Merge branch 'main' of https://git.0orz.top/Zpekii/go-example
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m40s
2026-01-25 21:27:52 +08:00
root
bd18f32670 chore: update kustomizations 2026-01-25 21:26:44 +08:00
Flux
6e2e0f0ed0 Add Flux sync manifests
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-01-25 21:20:17 +08:00
Flux
42becfe8b0 Add Flux v2.7.5 component manifests
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-01-25 21:20:12 +08:00
Zpekii
b385dfb0ec chore: rm flux [skip ci] 2026-01-25 21:17:05 +08:00
Zpekii
925e346df3 chore: delete flux kustomizations [skip ci] 2026-01-25 21:16:43 +08:00
Flux
3b1c6f4ee9 Add Flux sync manifests
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 33m43s
2026-01-25 20:38:45 +08:00
Flux
e4364224bd Add Flux v2.7.5 component manifests
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-01-25 20:38:40 +08:00
Gitea Action
1db170150f chore: update image to 8b5d44399e [skip ci] 2026-01-25 12:25:50 +00:00
7 changed files with 6 additions and 20 deletions

View File

@@ -59,12 +59,12 @@ jobs:
- name: Update manifest and Push to Git - name: Update manifest and Push to Git
run: | run: |
# 使用 kustomize 或 sed 修改镜像版本 # 使用 kustomize 或 sed 修改镜像版本
sed -i "s|image: .*:.*|image: harbor.0orz.top/go-example/go-example:${{ gitea.sha }}|g" deployment.yaml sed -i "s|image: .*:.*|image: harbor.0orz.top/go-example/go-example:${{ gitea.sha }}|g" kustomize/deployment.yaml
# 配置 Git 并提交回仓库 # 配置 Git 并提交回仓库
git config --global user.name "Gitea Action" git config --global user.name "Gitea Action"
git config --global user.email "action@gitea.io" git config --global user.email "action@gitea.io"
git add deployment.yaml git add kustomize/deployment.yaml
git commit -m "chore: update image to ${{ gitea.sha }} [skip ci]" git commit -m "chore: update image to ${{ gitea.sha }} [skip ci]"
git push origin main git push origin main
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."

View File

@@ -9,4 +9,4 @@ flux bootstrap git \
--branch=$BRANCH \ --branch=$BRANCH \
--username=$USER_NAME \ --username=$USER_NAME \
--token-auth=true \ --token-auth=true \
--path=./ --path=./clusters/app

View File

@@ -5,7 +5,7 @@ metadata:
name: go-example name: go-example
namespace: flux-system namespace: flux-system
spec: spec:
interval: 3m0s interval: 1m0s
ref: ref:
branch: main branch: main
url: https://git.0orz.top/Zpekii/go-example.git url: https://git.0orz.top/Zpekii/go-example

View File

@@ -1,6 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- flux-system/
- go-example-source.yaml
- go-example-kustomization.yaml

View File

@@ -1,4 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- clusters/app

View File

@@ -33,7 +33,7 @@ spec:
spec: spec:
containers: containers:
- name: go-example - name: go-example
image: harbor.0orz.top/go-example/go-example:4c748b20e3fc7f7139ad11ddd8448e2222cff6f8 image: harbor.0orz.top/go-example/go-example:000f34a0591306e686e8cf06bf131449eb30b028
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
resources: resources:
requests: requests:

View File

@@ -1,4 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../deployment.yaml