Compare commits

...

4 Commits

Author SHA1 Message Date
小贺
bc721287df 变更变量存储位置
All checks were successful
Build and Push Docker Images / build-and-push (backend) (push) Successful in 1m21s
Build and Push Docker Images / build-and-push (frontend) (push) Successful in 17s
2025-09-04 15:47:10 +08:00
小贺
f609e1725f 精简镜像 2025-09-04 15:47:10 +08:00
1bb91aab66 更新 README.md
Some checks failed
Build and Push Docker Images / build-and-push (backend) (push) Failing after 12s
Build and Push Docker Images / build-and-push (frontend) (push) Failing after 12s
2025-09-04 13:03:24 +08:00
a87161081b 添加执行操作
Some checks failed
Build and Push Docker Images / build-and-push (backend) (push) Has started running
Build and Push Docker Images / build-and-push (frontend) (push) Has been cancelled
2025-09-04 13:03:01 +08:00
3 changed files with 10 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: gitea.zfxt.top
username: ${{ secrets.REGISTRY_USERNAME }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
# 为后端服务生成元数据
@@ -37,12 +37,8 @@ jobs:
images: gitea.zfxt.top/zfxt/backend
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# 为前端服务生成元数据
- name: Extract metadata for frontend
@@ -53,12 +49,8 @@ jobs:
images: gitea.zfxt.top/zfxt/frontend
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# 构建和推送后端镜像
- name: Build and push backend image

1
README
View File

@@ -1 +0,0 @@
第一次尝试构建CICD及完整docker镜像

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
第一次尝试构建CICD及完整docker镜像
```shell
#把docker compose文件下载下来
#执行
docker compose up -d
```