From 3e1ff7bebcc2c355068450d910cfcc9bc045e99b Mon Sep 17 00:00:00 2001 From: Bill Plein <260078+bplein@users.noreply.github.com> Date: Wed, 15 Mar 2023 11:18:32 -0500 Subject: [PATCH] Update docker-publish-github2.yml --- .github/workflows/docker-publish-github2.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/docker-publish-github2.yml b/.github/workflows/docker-publish-github2.yml index 7dd9103..302e4f9 100644 --- a/.github/workflows/docker-publish-github2.yml +++ b/.github/workflows/docker-publish-github2.yml @@ -65,6 +65,18 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Extract all versions from buildinfo.json + id: get-versions + run: | + version=$(jq -r '.[] | .tags | select( index("latest"))|.[]' buildinfo.json) + echo ${{ steps.get-versions.outputs.version }} + - name: Show versions + run: | + version="${{ steps.get-versions.outputs.value }}" + for version in $versions; do + echo "$version" + done # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action