mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: workflows deploy config
This commit is contained in:
parent
af73ef41fd
commit
dc94f0cad0
13
.github/workflows/Deploy.yml
vendored
13
.github/workflows/Deploy.yml
vendored
@ -5,6 +5,10 @@ on:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
||||
env:
|
||||
REGISTRY_IMAGE: hamster1963/nezha-dash
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
@ -25,20 +29,13 @@ jobs:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to AliYun Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: registry.cn-guangzhou.aliyuncs.com
|
||||
username: ${{ secrets.ALI_USERNAME }}
|
||||
password: ${{ secrets.ALI_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
hamster1963/nezha-dash
|
||||
registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash
|
||||
${{ env.REGISTRY_IMAGE }}
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=ref,event=tag
|
||||
|
Loading…
Reference in New Issue
Block a user