chore: rename prj
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user