动态生成(docker-publish.yml):使用元数据标签动态生成标签

🔧 更新配置(docker-publish.yml):删除硬编码的镜像标签,使用动态生成的输出标签
This commit is contained in:
shitao 2024-01-14 13:59:42 +08:00
parent 50906244d3
commit a3a83c3a7f

View File

@ -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