完成配置,镜像名不带端口
All checks were successful
Build and Push Docker Images / build-and-push (backend) (push) Successful in 37s
Build and Push Docker Images / build-and-push (frontend) (push) Successful in 20s

This commit is contained in:
小贺
2025-09-04 12:07:54 +08:00
parent 7878d168e0
commit 2360e0b80c

View File

@@ -24,7 +24,7 @@ jobs:
- name: Login to Registry - name: Login to Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: gitea.zfxt.top:8443 registry: gitea.zfxt.top
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
@@ -34,7 +34,7 @@ jobs:
id: meta-backend id: meta-backend
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: gitea.zfxt.top:8443/zfxt/backend images: gitea.zfxt.top/zfxt/backend
tags: | tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true type=sha,prefix=,suffix=,enable=true
@@ -50,7 +50,7 @@ jobs:
id: meta-frontend id: meta-frontend
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: gitea.zfxt.top:8443/zfxt/frontend images: gitea.zfxt.top/zfxt/frontend
tags: | tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true type=sha,prefix=,suffix=,enable=true