Skip to content

Commit

Permalink
✨ 动态生成(docker-publish.yml):使用元数据标签动态生成标签
Browse files Browse the repository at this point in the history
🔧 更新配置(docker-publish.yml):删除硬编码的镜像标签,使用动态生成的输出标签
  • Loading branch information
Sitoi committed Jan 14, 2024
1 parent 5090624 commit a3a83c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a3a83c3

Please sign in to comment.