From ce52b115f890d8947c474a1d86475f845ac349eb Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 11 Sep 2024 11:44:19 -0700 Subject: [PATCH] x Signed-off-by: Derek Nola --- .github/workflows/trivy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index ea6f761e0d..dc178918fd 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -35,6 +35,7 @@ jobs: run: SKIP_WINDOWS=true make build-image-runtime - name: Save Newest Tag run: | + docker images --format "{{.Repository}}:{{.Tag}} {{.CreatedAt}}" NEWEST_TAG=$(docker images --format "{{.Repository}}:{{.Tag}} {{.CreatedAt}}" | grep "rancher/rke2-runtime" | sort -k2 -r | head -n1 | awk '{print $1}') echo "{NEWEST_TAG}={$NEWEST_TAG}" >> "$GITHUB_ENV"