From 49b670715b8ae6addd90534158de3b279e03b299 Mon Sep 17 00:00:00 2001 From: Josh Baird Date: Thu, 18 Jul 2024 10:14:51 -0400 Subject: [PATCH] Add fluentbit debug image. Signed-off-by: Josh Baird --- .github/workflows/build-fb-image.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-fb-image.yaml b/.github/workflows/build-fb-image.yaml index 9b4fae696..cd3c1f061 100644 --- a/.github/workflows/build-fb-image.yaml +++ b/.github/workflows/build-fb-image.yaml @@ -115,13 +115,14 @@ jobs: VERSION_WITHOUT_V=${VERSION#v} MAJOR_MINOR=$(echo $VERSION_WITHOUT_V | cut -d. -f1-2) + echo "VERSION=$VERSION" >> $GITHUB_ENV echo "VERSION_WITHOUT_V=$VERSION_WITHOUT_V" >> $GITHUB_ENV echo "MAJOR_MINOR=$MAJOR_MINOR" >> $GITHUB_ENV - name: Determine image version tag id: determine-tags run: | - if skopeo inspect docker://ghcr.io/${{ env.GITHUB_IMAGE }}:${{ env.VERSION }}; then + if skopeo inspect docker://ghcr.io/${{ env.GITHUB_IMAGE }}:${{ env.VERSION }}-debug; then echo "${{ env.VERSION }} tag already exists, assuming we're building a patch release!" LATEST_PATCH_VERSION=$(skopeo list-tags docker://ghcr.io/${{ env.GITHUB_IMAGE }} | grep -E "${{ env.VERSION }}-[0-9]+" | sort | uniq | tail -1 | tr -d \" | cut -d'-' -f2) NEW_PATCH_VERSION=$((LATEST_PATCH_VERSION + 1))