From 24da2fdc47b7b8fd55cb82bcc09fea393e8a6b34 Mon Sep 17 00:00:00 2001 From: eeliu <27064129+eeliu@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:15:03 +0800 Subject: [PATCH] update workflow --- .github/workflows/publish-collector-agent.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-collector-agent.yml b/.github/workflows/publish-collector-agent.yml index a6bd3f7d..551d92ff 100644 --- a/.github/workflows/publish-collector-agent.yml +++ b/.github/workflows/publish-collector-agent.yml @@ -35,6 +35,9 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} + flavor: | + latest = false + sep-tags: ${{ env.TAG_NAME }} - uses: actions/checkout@v2 with: @@ -108,6 +111,7 @@ jobs: - name: Create manifest list and push working-directory: /tmp/digests run: | + set -x docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)