fix: use Gitea Container Registry instead of Aliyun
Build and Deploy / build (push) Failing after 6s
Build and Deploy / deploy (push) Has been skipped

- Changed registry from Aliyun to git.viaeon.com
- Use GITEA_TOKEN secret for authentication
- Use GITEA_USERNAME variable for username
- Image name: git.viaeon.com/admin/anticaptcha
This commit is contained in:
2026-07-16 10:16:29 +00:00
parent 731e00855b
commit 3df52e1265
+6 -11
View File
@@ -7,10 +7,6 @@ on:
tags:
- 'v*'
env:
REGISTRY: registry.cn-hangzhou.aliyuncs.com
IMAGE_NAME: anticaptcha
jobs:
build:
runs-on: ubuntu-latest
@@ -33,19 +29,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
if: github.event_name != 'pull_request'
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: git.viaeon.com
username: ${{ vars.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: git.viaeon.com/admin/anticaptcha
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
@@ -55,7 +50,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}