3 Commits

Author SHA1 Message Date
typist
82e10b72c7 chore: update Gitea CI/CD workflow to use local caching for Docker builds
Some checks failed
Build and Push Docker Image / build (push) Failing after 3m35s
2025-10-27 22:06:20 +08:00
typist
1219deea89 chore: update Gitea CI/CD workflow to use secrets for Docker registry credentials
Some checks failed
Build and Push Docker Image / build (push) Failing after 5m38s
2025-10-27 20:50:10 +08:00
typist
b5b9d94119 chore: update Gitea CI/CD workflow to use new variable syntax for Docker registry and metadata
Some checks failed
Build and Push Docker Image / build (push) Failing after 4m3s
2025-10-27 20:33:06 +08:00

View File

@@ -19,16 +19,16 @@ jobs:
- name: 登录到 Gitea Container Registry - name: 登录到 Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.GITEA_INSTANCE_URL }} registry: ${{ secrets.REGISTRY_ENDPOINT }}
username: ${{ env.GITEA_ACTOR }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.REGISTRY_PASSWORD }}
- name: 提取 Docker 元数据 - name: 提取 Docker 元数据
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
${{ env.GITEA_INSTANCE_URL }}/${{ env.GITEA_REPOSITORY_OWNER }}/litek ${{ secrets.REGISTRY_ENDPOINT }}/${{ github.repository_owner }}/litek
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
@@ -42,7 +42,7 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=local,src=/cache
cache-to: type=gha,mode=max cache-to: type=local,dest=/cache,mode=max
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64