We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7da868 commit d364194Copy full SHA for d364194
.github/workflows/sysdig-cli-scanner.yaml
@@ -24,6 +24,8 @@ jobs:
24
run: |
25
exit 0
26
LATEST_VERSION=$(curl -sL https://download.sysdig.com/scanning/sysdig-cli-scanner/latest_version.txt)
27
+ echo "IMAGE_TAG=${LATEST_VERSION}" >> ${GITHUB_ENV}
28
+ exit 0
29
IMAGE_TAG=$(gh api -H "Accept: application/vnd.github+json" /orgs/sysdiglabs/packages/container/sysdig-cli-scanner/versions | jq -r 'sort_by(.created_at) | last | .metadata.container.tags[0]')
30
if [ ! -f ${GITHUB_WORKSPACE}/cache/latest_version.txt ] || [ ${LATEST_VERSION} != ${IMAGE_TAG} ]; then
31
echo "Container versions differ, building ${LATEST_VERSION}"
0 commit comments