mirror of
https://github.com/unchainese/unchain.git
synced 2025-12-24 12:38:02 +08:00
refactor: update Docker image build configuration and add tag support
This commit is contained in:
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
@@ -1,9 +1,11 @@
|
||||
name: Build and Push Docker image
|
||||
name: 构建image和发布
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@@ -28,4 +30,4 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository }}:latest
|
||||
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
Reference in New Issue
Block a user