Compare commits

..

3 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
2 changed files with 3 additions and 3 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

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