Update lede.yml

This commit is contained in:
Jiale Liu 2023-03-17 22:37:14 +08:00 committed by GitHub
parent 1172ab85b3
commit 38ed9a1c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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