From 5a5306f27521fabb56b6532f3debd3ec1183322e Mon Sep 17 00:00:00 2001 From: eeliu <27064129+eeliu@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:24:04 +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..6758fcbe 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 + tags: type=semver, value=${{ 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 ' *)