👷 修复手动构建镜像yml
This commit is contained in:
parent
640413123f
commit
f93949d9ba
9
.github/workflows/docker-build.yml
vendored
9
.github/workflows/docker-build.yml
vendored
@ -3,7 +3,12 @@ name: Docker Build and Push
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_dispatch: # 启用手动触发
|
workflow_dispatch: # 手动构建
|
||||||
|
inputs:
|
||||||
|
tag_name:
|
||||||
|
description: 'Tag Name (leave empty for default latest)'
|
||||||
|
required: false
|
||||||
|
default: 'latest'
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -27,7 +32,7 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
chaoszhu/easynode:${{ github.event.release.tag_name }}
|
chaoszhu/easynode:${{ github.event.release.tag_name || inputs.tag_name }}
|
||||||
chaoszhu/easynode:latest
|
chaoszhu/easynode:latest
|
||||||
|
|
||||||
- name: Clean up post-build
|
- name: Clean up post-build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user