mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
✨ 动态生成(docker-publish.yml):使用元数据标签动态生成标签
🔧 更新配置(docker-publish.yml):删除硬编码的镜像标签,使用动态生成的输出标签
This commit is contained in:
parent
50906244d3
commit
a3a83c3a7f
5
.github/workflows/docker-publish.yml
vendored
5
.github/workflows/docker-publish.yml
vendored
@ -29,6 +29,7 @@ jobs:
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
tags: latest
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
@ -46,8 +47,8 @@ jobs:
|
||||
platforms: ${{ matrix.platform }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
|
||||
tags: |
|
||||
docker.io/sitoi/dailycheckin:latest
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
- name: Export digest
|
||||
run: |
|
||||
mkdir -p /tmp/digests
|
||||
|
Loading…
Reference in New Issue
Block a user