mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 22:53:09 +00:00
ci(docker): add version tag to every deployment
This commit is contained in:
parent
a76576af23
commit
ba16f2f0ab
7
.github/workflows/Build_Image.yml
vendored
7
.github/workflows/Build_Image.yml
vendored
@ -14,6 +14,11 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 读取 package.json 的版本号
|
||||
- name: Read package version
|
||||
id: pkg
|
||||
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@ -27,5 +32,5 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
moefurina/ncm-api:latest
|
||||
moefurina/ncm-api:${{ github.sha }}
|
||||
moefurina/ncm-api:${{ env.VERSION }}
|
||||
platforms: linux/amd64
|
||||
|
Loading…
x
Reference in New Issue
Block a user