This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 668a8bee ci: release nightly images for version tags (#2769)
668a8bee is described below
commit 668a8bee5189b13fbd0c14f3d9ff31f7433f44aa
Author: Twice <[email protected]>
AuthorDate: Tue Feb 4 17:31:45 2025 +0800
ci: release nightly images for version tags (#2769)
---
.github/workflows/nightly.yaml | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml
index 50bd9fe7..eff1d65b 100644
--- a/.github/workflows/nightly.yaml
+++ b/.github/workflows/nightly.yaml
@@ -20,6 +20,7 @@ name: Nightly
on:
push:
branches: [unstable]
+ tags: ['v2.**']
pull_request:
paths: ['.github/workflows/nightly.yaml']
@@ -107,8 +108,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- - name: Docker meta
+ - name: Docker meta (for unstable)
id: meta
+ if: ${{ github.ref_name == 'unstable' }}
uses: docker/metadata-action@v5
with:
images: apache/kvrocks
@@ -117,12 +119,28 @@ jobs:
type=sha,prefix=nightly-{{date 'YYYYMMDD'}}-,format=short
type=raw,value=nightly
+ - name: Docker meta (for tags)
+ id: meta_tag
+ if: ${{ github.ref_name != 'unstable' }}
+ uses: docker/metadata-action@v5
+ with:
+ images: apache/kvrocks
+ flavor: latest=false
+ tags: |
+ type=sha,prefix=nightly-{{date 'YYYYMMDD'}}-{{tag}}-,format=short
+
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) |
join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'apache/kvrocks@sha256:%s ' *)
- - name: Inspect image
+ - name: Inspect image (for unstable)
+ if: ${{ github.ref_name == 'unstable' }}
run: |
docker buildx imagetools inspect apache/kvrocks:${{
steps.meta.outputs.version }}
+
+ - name: Inspect image (for tags)
+ if: ${{ github.ref_name != 'unstable' }}
+ run: |
+ docker buildx imagetools inspect apache/kvrocks:${{
steps.meta_tag.outputs.version }}