ZhaoShanGeng
commited on
Commit
·
98fbbd6
1
Parent(s):
eab61c2
ci: Docker 镜像添加 latest 标签
Browse files- 当推送到 binary-build 分支时,自动打上 latest 和 latest-arm64 标签
- amd64 镜像: latest
- arm64 镜像: latest-arm64
.github/workflows/docker-publish.yml
CHANGED
|
@@ -72,6 +72,7 @@ jobs:
|
|
| 72 |
tags: |
|
| 73 |
type=ref,event=branch,suffix=${{ matrix.tag_suffix }}
|
| 74 |
type=raw,value=binary${{ matrix.tag_suffix }},enable=true
|
|
|
|
| 75 |
|
| 76 |
- name: Build and push (${{ matrix.arch }})
|
| 77 |
uses: docker/build-push-action@v5
|
|
|
|
| 72 |
tags: |
|
| 73 |
type=ref,event=branch,suffix=${{ matrix.tag_suffix }}
|
| 74 |
type=raw,value=binary${{ matrix.tag_suffix }},enable=true
|
| 75 |
+
type=raw,value=latest${{ matrix.tag_suffix }},enable=${{ github.ref == 'refs/heads/binary-build' }}
|
| 76 |
|
| 77 |
- name: Build and push (${{ matrix.arch }})
|
| 78 |
uses: docker/build-push-action@v5
|