From 38ed9a1c162c4df4e7f9031c37b38955af1ff1d0 Mon Sep 17 00:00:00 2001 From: Jiale Liu Date: Fri, 17 Mar 2023 22:37:14 +0800 Subject: [PATCH] Update lede.yml --- .github/workflows/lede.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lede.yml b/.github/workflows/lede.yml index 00b1d48..61cf16e 100644 --- a/.github/workflows/lede.yml +++ b/.github/workflows/lede.yml @@ -1,12 +1,15 @@ name: LEDE Docker Image on: + watch: + types: started push: branches: [ 'main' ] tags: [ 'v*.*.*' ] env: - REGISTRY: registry.cn-beijing.aliyuncs.com + REGION: cn-hongkong + REGISTRY: registry.${{ env.REGION }}.aliyuncs.com NAMESPACE: licsber REPOSITORY: github @@ -23,10 +26,11 @@ jobs: login-server: https://${{ env.REGISTRY }} username: "${{ secrets.ACR_USERNAME }}" password: "${{ secrets.ACR_PASSWD }}" + region-id: ${{ env.REGION }} - name: Build Base Image env: - TAG: ${{ github.sha }} + TAG: lede-${{ github.sha }} run: | IMAGE=${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.REPOSITORY }}:${{ env.REPOSITORY }} echo $IMAGE