chore: rename prj

This commit is contained in:
2026-01-18 20:18:51 +08:00
parent 6843ce2f56
commit 4afe3b0100
5 changed files with 16 additions and 16 deletions

View File

@@ -49,14 +49,14 @@ jobs:
- name: Build Docker image
run: |
cd ${{ gitea.workspace }}
docker build -t localhost:8180/k8s-example/k8s-example:${{ gitea.sha }} .
docker build -t localhost:8180/go-example/go-example:${{ gitea.sha }} .
- name: Push Docker image to local registry
run: |
docker push localhost:8180/k8s-example/k8s-example:${{ gitea.sha }}
docker push localhost:8180/go-example/go-example:${{ gitea.sha }}
- name: Update manifest and Push to Git
run: |
# 使用 kustomize 或 sed 修改镜像版本
sed -i "s|image: .*:.*|image: localhost:8180/k8s-example/k8s-example:${{ gitea.sha }}|g" deployment.yaml
sed -i "s|image: .*:.*|image: localhost:8180/go-example/go-example:${{ gitea.sha }}|g" deployment.yaml
# 配置 Git 并提交回仓库
git config --global user.name "Gitea Action"