fix: use registry.samnet.dev for image push to bypass Cloudflare upload limit
This commit is contained in:
@@ -14,6 +14,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.samnet.dev
|
REGISTRY: git.samnet.dev
|
||||||
|
PUSH_REGISTRY: registry.samnet.dev
|
||||||
IMAGE_NAME: mtproxymax-telemt
|
IMAGE_NAME: mtproxymax-telemt
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -32,7 +33,7 @@ jobs:
|
|||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.PUSH_REGISTRY }}
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
@@ -70,7 +71,7 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
TELEMT_COMMIT=${{ github.event.inputs.telemt_commit }}
|
TELEMT_COMMIT=${{ github.event.inputs.telemt_commit }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version_tag }}
|
${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version_tag }}
|
||||||
${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:latest
|
||||||
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache
|
cache-from: type=registry,ref=${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
cache-to: type=registry,ref=${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user